aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Willcox <jwillcox@gnome.org>2003-02-08 07:53:10 +0800
committerJames Willcox <jwillcox@src.gnome.org>2003-02-08 07:53:10 +0800
commit07f599e4b4e2ec6e9e9636d6efd8083a1217a97c (patch)
treed2a7279447ccf77ba60c7c59e2a5278cb7c0a958
parentd83af56f155c5a4420f06dda714436dd38ef3550 (diff)
downloadgsoc2013-epiphany-07f599e4b4e2ec6e9e9636d6efd8083a1217a97c.tar
gsoc2013-epiphany-07f599e4b4e2ec6e9e9636d6efd8083a1217a97c.tar.gz
gsoc2013-epiphany-07f599e4b4e2ec6e9e9636d6efd8083a1217a97c.tar.bz2
gsoc2013-epiphany-07f599e4b4e2ec6e9e9636d6efd8083a1217a97c.tar.lz
gsoc2013-epiphany-07f599e4b4e2ec6e9e9636d6efd8083a1217a97c.tar.xz
gsoc2013-epiphany-07f599e4b4e2ec6e9e9636d6efd8083a1217a97c.tar.zst
gsoc2013-epiphany-07f599e4b4e2ec6e9e9636d6efd8083a1217a97c.zip
Make the bookmarks editor not crash-on-close if no keyword is selected.
2003-02-07 James Willcox <jwillcox@gnome.org> * src/bookmarks/ephy-bookmarks-editor.c: (ephy_bookmarks_editor_dispose): Make the bookmarks editor not crash-on-close if no keyword is selected.
-rw-r--r--ChangeLog7
-rw-r--r--src/bookmarks/ephy-bookmarks-editor.c7
2 files changed, 14 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index e7026611c..ba2389105 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2003-02-07 James Willcox <jwillcox@gnome.org>
+
+ * src/bookmarks/ephy-bookmarks-editor.c:
+ (ephy_bookmarks_editor_dispose):
+
+ Make the bookmarks editor not crash-on-close if no keyword is selected.
+
2003-02-07 Marco Pesenti Gritti <marco@it.gnome.org>
* lib/egg/eggtoolbar.c: (egg_toolbar_init):
diff --git a/src/bookmarks/ephy-bookmarks-editor.c b/src/bookmarks/ephy-bookmarks-editor.c
index 22d6452a4..1a145188e 100644
--- a/src/bookmarks/ephy-bookmarks-editor.c
+++ b/src/bookmarks/ephy-bookmarks-editor.c
@@ -139,6 +139,13 @@ ephy_bookmarks_editor_dispose (GObject *object)
if (editor->priv->key_view != NULL)
{
selection = ephy_node_view_get_selection (editor->priv->key_view);
+ if (selection == NULL || selection->data == NULL)
+ {
+ editor->priv->key_view = NULL;
+ G_OBJECT_CLASS (parent_class)->dispose (object);
+ return;
+ }
+
selected_id = ephy_node_get_id (EPHY_NODE (selection->data));
if (selected_id > 0)
{