[nautilus-sendto/gnome-3-6] main: Don't run error out if there's no main loop



commit 83991d5110dd894df3ed6f0fccacb782e1e32317
Author: Bastien Nocera <hadess hadess net>
Date:   Mon Sep 3 20:08:13 2012 +0100

    main: Don't run error out if there's no main loop

 src/nautilus-sendto-command.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/nautilus-sendto-command.c b/src/nautilus-sendto-command.c
index bfccd75..f221e27 100644
--- a/src/nautilus-sendto-command.c
+++ b/src/nautilus-sendto-command.c
@@ -90,7 +90,8 @@ static const GOptionEntry entries[] = {
 static void 
 destroy_dialog (GtkWidget *widget, gpointer data )
 {
-        gtk_main_quit ();
+	if (gtk_main_level () > 0)
+		gtk_main_quit ();
 }
 
 static char *



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