Bail out of BookmarksImport action if no bookmarks or hidden browser

This commit is contained in:
Christian Dywan 2009-11-21 06:39:18 +01:00
parent 3253f1605a
commit 0af9c0cc9d

View file

@ -4080,6 +4080,9 @@ _action_bookmarks_import_activate (GtkAction* action,
guint i;
KatzeItem* item;
if (!browser->bookmarks || !GTK_WIDGET_VISIBLE (browser))
return;
dialog = gtk_dialog_new_with_buttons (
_("Import bookmarks..."), GTK_WINDOW (browser),
GTK_DIALOG_DESTROY_WITH_PARENT | GTK_DIALOG_NO_SEPARATOR,