[gthumb/gthumb-3-4] mark the file as not modified when discarding the changes



commit cf4900bef78d960e57b0f13f39d5812e80badefe
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Sat Dec 26 12:58:14 2015 +0100

    mark the file as not modified when discarding the changes

 gthumb/gth-browser.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gthumb/gth-browser.c b/gthumb/gth-browser.c
index 3524c7a..2f35ec2 100644
--- a/gthumb/gth-browser.c
+++ b/gthumb/gth-browser.c
@@ -1860,8 +1860,8 @@ static void
 ask_whether_to_save__done (AskSaveData *data,
                           gboolean     cancelled)
 {
-       if (cancelled && (data->browser->priv->current_file != NULL))
-               g_file_info_set_attribute_boolean (data->browser->priv->current_file->info, 
"gth::file::is-modified", TRUE);
+       if (data->browser->priv->current_file != NULL)
+               g_file_info_set_attribute_boolean (data->browser->priv->current_file->info, 
"gth::file::is-modified", cancelled);
        if (data->callback != NULL)
                (*data->callback) (data->browser, cancelled, data->user_data);
        g_free (data);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]