File libfm-1.2.3-Fix-SF935.patch of Package libfm
From 5f99bd8abdd26b55e84f4f876db7126245806197 Mon Sep 17 00:00:00 2001
From: Andriy Grytsenko <andrej@rep.kiev.ua>
Date: Sat, 9 May 2015 16:38:12 +0300
Subject: [PATCH] [SF#935] Fix invalid desktop entry save if 'Cancel' was
pressed in dialog.
If not OK was pressed then finish() callback should be called with TRUE, not FALSE.
---
NEWS | 3 +++
src/gtk/fm-file-properties.c | 4 ++--
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/NEWS b/NEWS
index a8ee441..0c499ba 100644
--- a/NEWS
+++ b/NEWS
@@ -18,6 +18,9 @@
* Fixed wrong treating files like ".purple" as having extension "purple".
+* Fixed invalid desktop entry save if 'Cancel' was pressed in the file
+ properties dialog window.
+
Changes on 1.2.3 since 1.2.2:
diff --git a/src/gtk/fm-file-properties.c b/src/gtk/fm-file-properties.c
index bd8199b..14a5aaf 100644
--- a/src/gtk/fm-file-properties.c
+++ b/src/gtk/fm-file-properties.c
@@ -2,7 +2,7 @@
* fm-file-properties.c
*
* Copyright 2009 PCMan <pcman.tw@gmail.com>
- * Copyright 2012-2014 Andriy Grytsenko (LStranger) <andrej@rep.kiev.ua>
+ * Copyright 2012-2015 Andriy Grytsenko (LStranger) <andrej@rep.kiev.ua>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -917,7 +917,7 @@ static void on_response(GtkDialog* dlg, int response, FmFilePropData* data)
{
GSList *l, *l2;
for (l = data->ext, l2 = data->extdata; l; l = l->next, l2 = l2->next)
- ((FmFilePropExt*)l->data)->cb.finish(l2->data, FALSE);
+ ((FmFilePropExt*)l->data)->cb.finish(l2->data, TRUE);
g_slist_free(data->ext);
g_slist_free(data->extdata);
data->ext = NULL;
--
2.1.4