[gnome-shell] main: Close runDialog as necessary on session mode changes



commit efdf1ff755943fba1f8a9aaeff77daa3ed338088
Author: Florian Müllner <fmuellner gnome org>
Date:   Wed Sep 18 19:47:59 2013 +0200

    main: Close runDialog as necessary on session mode changes
    
    We already do this for looking glass, but it makes even less sense
    for the normal run dialog - if a mode sets runDialog to false, the
    intention is to not allow executing aribitrary commands.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=708218

 js/ui/main.js |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/main.js b/js/ui/main.js
index bca2b22..6f961be 100644
--- a/js/ui/main.js
+++ b/js/ui/main.js
@@ -90,8 +90,12 @@ function _sessionUpdated() {
                                   Shell.KeyBindingMode.OVERVIEW,
                                   sessionMode.hasRunDialog ? openRunDialog : null);
 
-    if (!sessionMode.hasRunDialog && lookingGlass)
-        lookingGlass.close();
+    if (!sessionMode.hasRunDialog) {
+        if (runDialog)
+            runDialog.close();
+        if (lookingGlass)
+            lookingGlass.close();
+    }
 }
 
 function start() {



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