[gnome-bluetooth] Make --dump-devices work again in applet



commit b3abb40a8ae6b525feaf52c74a979c995d26df65
Author: Bastien Nocera <hadess hadess net>
Date:   Fri Aug 13 09:11:06 2010 +0100

    Make --dump-devices work again in applet
    
    Without passing "-d" to ignore the existing running applet.

 applet/main.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/applet/main.c b/applet/main.c
index bd2cc57..3631135 100644
--- a/applet/main.c
+++ b/applet/main.c
@@ -1128,6 +1128,11 @@ int main(int argc, char *argv[])
 		return 1;
 	}
 
+	if (option_dump != FALSE) {
+		dump_devices ();
+		return 0;
+	}
+
 	if (option_debug == FALSE) {
 		app = gtk_application_new ("org.gnome.Bluetooth.applet",
 					   &argc, &argv);
@@ -1140,11 +1145,6 @@ int main(int argc, char *argv[])
 		app = NULL;
 	}
 
-	if (option_dump != FALSE) {
-		dump_devices ();
-		return 0;
-	}
-
 	g_set_application_name(_("Bluetooth Applet"));
 
 	gtk_window_set_default_icon_name("bluetooth");



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