shell: Fix entering the same panel twice

Manually this time.

https://bugzilla.gnome.org/show_bug.cgi?id=684812
This commit is contained in:
Bastien Nocera 2012-09-25 21:23:57 +02:00
parent a6cb76eff8
commit b3287e1b97

View file

@ -278,6 +278,7 @@ shell_show_overview_page (GnomeControlCenter *center)
notebook_remove_page (priv->notebook, priv->current_panel_box);
priv->current_panel = NULL;
priv->current_panel_box = NULL;
g_clear_pointer (&priv->current_panel_id, g_free);
/* clear the search text */
g_free (priv->filter_string);
@ -965,7 +966,7 @@ _shell_set_active_panel_from_id (CcShell *shell,
return TRUE;
}
g_free (priv->current_panel_id);
g_clear_pointer (&priv->current_panel_id, g_free);
/* clear any custom widgets */
_shell_remove_all_custom_widgets (priv);