From 21c11833b53dee7ded1fe891b682cc84b9b3a0d1 Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Sun, 11 Sep 2011 15:10:00 +0100 Subject: [PATCH] color: Don't assert if the user double clicks the delete profile button --- panels/color/cc-color-panel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/panels/color/cc-color-panel.c b/panels/color/cc-color-panel.c index 96a332689..47f142938 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,