[Xfce4-commits] <midori:master> Bail out of BookmarksImport action if no bookmarks or hidden browser
Christian Dywan
noreply at xfce.org
Sat Nov 21 06:54:02 CET 2009
Updating branch refs/heads/master
to 0af9c0cc9dd19551f185f00ac211ceb5ed3f765f (commit)
from 3253f1605a533ee63b7060a08164fcb2158a0ea5 (commit)
commit 0af9c0cc9dd19551f185f00ac211ceb5ed3f765f
Author: Christian Dywan <christian at twotoasts.de>
Date: Sat Nov 21 06:39:18 2009 +0100
Bail out of BookmarksImport action if no bookmarks or hidden browser
midori/midori-browser.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/midori/midori-browser.c b/midori/midori-browser.c
index be6925a..123202c 100644
--- a/midori/midori-browser.c
+++ b/midori/midori-browser.c
@@ -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,
More information about the Xfce4-commits
mailing list