[gnome-color-manager] trivial: add some code that should never trigger in order to help find a crash
- From: Richard Hughes <rhughes src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-color-manager] trivial: add some code that should never trigger in order to help find a crash
- Date: Sun, 3 Jan 2010 09:46:32 +0000 (UTC)
commit 8e731743576f6fb3308f71a52a07eecdb2b2b8fd
Author: Richard Hughes <richard hughsie com>
Date: Sun Jan 3 09:46:04 2010 +0000
trivial: add some code that should never trigger in order to help find a crash
src/gcm-prefs.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/gcm-prefs.c b/src/gcm-prefs.c
index 6129337..176aabd 100644
--- a/src/gcm-prefs.c
+++ b/src/gcm-prefs.c
@@ -749,6 +749,8 @@ gcm_prefs_profile_delete_cb (GtkWidget *widget, gpointer data)
/* re-get all the profiles for this device */
widget = GTK_WIDGET (gtk_builder_get_object (builder, "treeview_devices"));
selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (widget));
+ if (selection == NULL)
+ goto out;
gcm_prefs_devices_treeview_clicked_cb (selection, NULL);
out:
g_free (filename);
@@ -853,6 +855,8 @@ gcm_prefs_profile_import (const gchar *filename)
/* re-get all the profiles for this device */
widget = GTK_WIDGET (gtk_builder_get_object (builder, "treeview_devices"));
selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (widget));
+ if (selection == NULL)
+ goto out;
gcm_prefs_devices_treeview_clicked_cb (selection, NULL);
out:
if (profile != NULL)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]