[gthumb] don't ask to save a modified image when switching to fullscreen



commit 9e8d3f23e762dea4e359da46497aa92ab04f3a47
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Sat Aug 28 14:03:53 2010 +0200

    don't ask to save a modified image when switching to fullscreen

 gthumb/gth-browser.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gthumb/gth-browser.c b/gthumb/gth-browser.c
index 1a51b2a..6abeb13 100644
--- a/gthumb/gth-browser.c
+++ b/gthumb/gth-browser.c
@@ -2247,6 +2247,9 @@ _gth_browser_set_current_page (GthWindow *window,
 {
 	GthBrowser *browser = GTH_BROWSER (window);
 
+	if (page == gth_window_get_current_page (window))
+		return;
+
 	if (eel_gconf_get_boolean (PREF_MSG_SAVE_MODIFIED_IMAGE, DEFAULT_MSG_SAVE_MODIFIED_IMAGE)
 	    && gth_browser_get_file_modified (browser))
 	{



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