[gthumb] mark the file as not modified when discarding the changes
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] mark the file as not modified when discarding the changes
- Date: Sat, 26 Dec 2015 21:18:44 +0000 (UTC)
commit 7eae5f65b2b2bf446bc1af1e37c98dc40e65978a
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 229e1d2..3a474fc 100644
--- a/gthumb/gth-browser.c
+++ b/gthumb/gth-browser.c
@@ -1865,8 +1865,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]