[Commits] [SCM] claws branch, master, updated. 3.17.3-134-ge361095
wwp at claws-mail.org
wwp at claws-mail.org
Sun Mar 10 09:07:28 CET 2019
The branch, master has been updated
via e3610952cbba2d9dd2b18868a151b83f2182611d (commit)
from 1f897835b04be0f71d3d48f53d798911c0605ecd (commit)
Summary of changes:
src/plugins/fancy/fancy_viewer.c | 4 ++++
1 file changed, 4 insertions(+)
- Log -----------------------------------------------------------------
commit e3610952cbba2d9dd2b18868a151b83f2182611d
Author: wwp <subscript at free.fr>
Date: Sun Mar 10 09:06:50 2019 +0100
Stop proceeding if file-save-as has been cancelled.
diff --git a/src/plugins/fancy/fancy_viewer.c b/src/plugins/fancy/fancy_viewer.c
index ba3271b..c2b50c1 100644
--- a/src/plugins/fancy/fancy_viewer.c
+++ b/src/plugins/fancy/fancy_viewer.c
@@ -690,6 +690,10 @@ static void download_file_cb(GtkWidget *widget, FancyViewer *viewer)
gchar *filename = g_utf8_strchr(link, -1, g_utf8_get_char("/"));
filename = g_strconcat(g_get_home_dir(), filename, NULL);
gchar *fname = filesel_select_file_save(_("Save as"), filename);
+ if (!fname) {
+ g_free(filename);
+ return;
+ }
if (viewer->curlfile) viewer->curlfile = NULL;
if (viewer->stream) viewer->stream = NULL;
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list