public void main_cancel() {
		// Restore Prefs
		Preferences.restoreTemporaryToCurrent();

		// Restore GUI
		Preferences prefs = (Preferences) GUITreeLoader.reg.get(GUITreeComponentRegistry.PREFERENCES);

		Iterator it = prefs.getPreferencesPanelKeys();
		while (it.hasNext()) {
			String key = (String) it.next();
			PreferencesPanel panel = prefs.getPreferencesPanel(key);
			panel.setToCurrent();
		}

		hide();
	}