aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@it.gnome.org>2003-02-21 00:24:41 +0800
committerMarco Pesenti Gritti <mpeseng@src.gnome.org>2003-02-21 00:24:41 +0800
commita923f76715c4cca404b318f5370b8098b4b0a83f (patch)
tree7d25164ecfe2740aaf5ce8b04e0ac54ce5003979 /src
parent443bb3dcad6c71a4d847091e5655d66e475742bd (diff)
downloadgsoc2013-epiphany-a923f76715c4cca404b318f5370b8098b4b0a83f.tar
gsoc2013-epiphany-a923f76715c4cca404b318f5370b8098b4b0a83f.tar.gz
gsoc2013-epiphany-a923f76715c4cca404b318f5370b8098b4b0a83f.tar.bz2
gsoc2013-epiphany-a923f76715c4cca404b318f5370b8098b4b0a83f.tar.lz
gsoc2013-epiphany-a923f76715c4cca404b318f5370b8098b4b0a83f.tar.xz
gsoc2013-epiphany-a923f76715c4cca404b318f5370b8098b4b0a83f.tar.zst
gsoc2013-epiphany-a923f76715c4cca404b318f5370b8098b4b0a83f.zip
Dont crash when dragging a new bookmark on the toolbar and then click
2003-02-20 Marco Pesenti Gritti <marco@it.gnome.org> * lib/widgets/ephy-editable-toolbar.c: (drag_data_received_cb): * src/toolbar.c: (toolbar_get_action): Dont crash when dragging a new bookmark on the toolbar and then click cancel.
Diffstat (limited to 'src')
-rwxr-xr-xsrc/toolbar.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/toolbar.c b/src/toolbar.c
index 1872a86eb..5929d718a 100755
--- a/src/toolbar.c
+++ b/src/toolbar.c
@@ -172,9 +172,14 @@ toolbar_get_action (EphyEditableToolbar *etoolbar,
gtk_widget_destroy (new_bookmark);
}
- g_return_val_if_fail (id != 0, NULL);
-
- action = get_bookmark_action (t, bookmarks, id);
+ if (id != 0)
+ {
+ action = get_bookmark_action (t, bookmarks, id);
+ }
+ else
+ {
+ action = NULL;
+ }
g_list_foreach (uris, (GFunc)g_free, NULL);
g_list_free (uris);