[Xfce4-commits] [apps/ristretto] 02/03: Disable save-copy dialog if no image is loaded.
noreply at xfce.org
noreply at xfce.org
Sun Jan 24 04:10:50 CET 2016
This is an automated email from the git hooks/post-receive script.
eric pushed a commit to branch master
in repository apps/ristretto.
commit e03935c9d7c12e1377514bdad4c01099c557ec0d
Author: Marc Schink <xfce-dev at marcschink.de>
Date: Tue Sep 1 17:43:20 2015 +0200
Disable save-copy dialog if no image is loaded.
The save-copy dialog can no longer be opened via its keyboard
shortcut if no image is loaded.
Signed-off-by: Eric Koegel <eric.koegel at gmail.com>
---
src/main_window.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/main_window.c b/src/main_window.c
index e3ec5be..432113d 100644
--- a/src/main_window.c
+++ b/src/main_window.c
@@ -3162,6 +3162,12 @@ cb_rstto_main_window_save_copy (GtkWidget *widget, RsttoMainWindow *window)
GtkWidget *dialog, *err_dialog;
gint response;
GFile *file, *s_file;
+ RsttoFile *r_file;
+
+ r_file = rstto_image_list_iter_get_file (window->priv->iter);
+
+ if (r_file == NULL)
+ return;
dialog = gtk_file_chooser_dialog_new(_("Save copy"),
GTK_WINDOW(window),
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list