[eog] Fix critical warning when closing empty windows



commit 0d3c812764252e7582d05147b2724c9e272d0e7b
Author: Felix Riemann <friemann gnome org>
Date:   Sun Jun 12 13:03:28 2011 +0200

    Fix critical warning when closing empty windows

 src/eog-window.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/eog-window.c b/src/eog-window.c
index fc05bf5..5d249e8 100644
--- a/src/eog-window.c
+++ b/src/eog-window.c
@@ -2333,7 +2333,7 @@ eog_window_unsaved_images_confirm (EogWindow *window)
 					EOG_CONF_UI_DISABLE_CLOSE_CONFIRMATION);
 	disabled |= window->priv->save_disabled;
 
-	if (disabled) {
+	if (disabled | !priv->store) {
 		return FALSE;
 	}
 



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