[gthumb/gthumb-3-4] 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/gthumb-3-4] mark the file as not modified when discarding the changes
- Date: Sat, 26 Dec 2015 21:33:01 +0000 (UTC)
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]