[gthumb: 29/40] make sure closing is executed only once



commit 0a187134e769e788bbe8d625f1704992bbffdcc7
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Thu Sep 9 19:36:34 2010 +0200

    make sure closing is executed only once

 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 b22e92a..a60a3cb 100644
--- a/gthumb/gth-browser.c
+++ b/gthumb/gth-browser.c
@@ -2066,6 +2066,9 @@ _gth_browser_real_close (GthBrowser *browser)
 {
 	int i;
 
+	if (browser->priv->closing)
+		return;
+
 	/* remove gconf notifications */
 
 	for (i = 0; i < GCONF_NOTIFICATIONS; i++)



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