[Xfce4-commits] <midori:master> Bail out of Export if no bookmarks or hidden
Christian Dywan
noreply at xfce.org
Sat Mar 6 19:20:01 CET 2010
Updating branch refs/heads/master
to e7005abd55d8d3f54a08dda2ad2d1532e8822179 (commit)
from 9f20a889e1548287694c23b380d13239e40f4bb9 (commit)
commit e7005abd55d8d3f54a08dda2ad2d1532e8822179
Author: Christian Dywan <christian at twotoasts.de>
Date: Sat Mar 6 19:16:52 2010 +0100
Bail out of Export if no bookmarks or hidden
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 3f87759..566b800 100644
--- a/midori/midori-browser.c
+++ b/midori/midori-browser.c
@@ -4648,6 +4648,9 @@ _action_bookmarks_export_activate (GtkAction* action,
gchar* path = NULL;
GError* error;
+ if (!browser->bookmarks || !GTK_WIDGET_VISIBLE (browser))
+ return;
+
file_dialog = sokoke_file_chooser_dialog_new (_("Save file as"),
GTK_WINDOW (browser), GTK_FILE_CHOOSER_ACTION_SAVE);
gtk_file_chooser_set_current_name (GTK_FILE_CHOOSER (file_dialog),
More information about the Xfce4-commits
mailing list