[gnome-shell] searchDisplay: Unset default result when clearing search



commit af0b5e61763ad8a26aea4b17314315288901dc8c
Author: Florian MÃllner <fmuellner gnome org>
Date:   Fri Feb 8 17:49:37 2013 +0100

    searchDisplay: Unset default result when clearing search
    
    If we fail to do so, a previously set result may be activated by
    hitting enter, even if a search did not turn up any actual results.

 js/ui/searchDisplay.js |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/searchDisplay.js b/js/ui/searchDisplay.js
index 2008451..5df94be 100644
--- a/js/ui/searchDisplay.js
+++ b/js/ui/searchDisplay.js
@@ -423,6 +423,7 @@ const SearchResults = new Lang.Class({
         this._searchSystem.reset();
         this._statusBin.hide();
         this._clearDisplay();
+        this._defaultResult = null;
     },
 
     startingSearch: function() {


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