Do not exit app when responding to identity request, just hide.
authorKevin Wasserman <krwasserman@hotmail.com>
Wed, 17 Apr 2013 13:04:05 +0000 (09:04 -0400)
committerKevin Wasserman <krwasserman@hotmail.com>
Wed, 17 Apr 2013 13:04:05 +0000 (09:04 -0400)
Temporary fix for issue where identity selector exits without
sending identity.

src/moonshot-identity-management-view.vala
src/moonshot-identity-manager-app.vala

index 9fe081f..40114f3 100644 (file)
@@ -471,8 +471,13 @@ public class IdentityManagerView : Window {
         if (this.request_queue.is_empty())
         {
             candidates = null;
-            if (!parent_app.explicitly_launched)
-                Gtk.main_quit ();
+            if (!parent_app.explicitly_launched) {
+// The following occasionally causes the app to exit without sending the dbus
+// reply, so for now we just don't exit
+//                Gtk.main_quit ();
+// just hide instead
+                this.hide();
+            }
         } else {
             candidates = this.request_queue.peek_head().candidates;
         }
index cff2824..7b4389d 100644 (file)
@@ -183,9 +183,11 @@ public class IdentityManagerApp {
         // callback because we may be being called from a 'yield')
         Idle.add(
             () => {
-                request.return_identity (identity); 
-                if (!explicitly_launched)
-                    Idle.add( () => { Gtk.main_quit(); return false; } );
+                request.return_identity (identity);
+// The following occasionally causes the app to exit without sending the dbus
+// reply, so for now we just don't exit
+//                if (!explicitly_launched)
+//                    Idle.add( () => { Gtk.main_quit(); return false; } );
                 return false;
             }
         );