[gnome-control-center] color: Don't assert if the user double clicks the delete profile button
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] color: Don't assert if the user double clicks the delete profile button
- Date: Sun, 11 Sep 2011 14:10:50 +0000 (UTC)
commit 21c11833b53dee7ded1fe891b682cc84b9b3a0d1
Author: Richard Hughes <richard hughsie com>
Date: Sun Sep 11 15:10:00 2011 +0100
color: Don't assert if the user double clicks the delete profile button
panels/color/cc-color-panel.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/panels/color/cc-color-panel.c b/panels/color/cc-color-panel.c
index 96a3326..47f1429 100644
--- a/panels/color/cc-color-panel.c
+++ b/panels/color/cc-color-panel.c
@@ -476,7 +476,7 @@ gcm_prefs_profile_remove_cb (GtkWidget *widget, CcColorPanel *prefs)
"treeview_devices"));
selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (widget));
if (!gtk_tree_selection_get_selected (selection, &model, &iter))
- g_assert_not_reached ();
+ goto out;
/* if the profile is default, then we'll have to make the first profile default */
gtk_tree_model_get (model, &iter,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]