[gnome-documents/gnome-3-4] searchbar: fix a thinko



commit 195b128225fec6d51a7dfb706aff32fcd54de5ac
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Mon May 14 14:14:50 2012 -0400

    searchbar: fix a thinko
    
    We want to reset the *search* type if it's != all, not if the *source*
    type is != all.

 src/searchbar.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/searchbar.js b/src/searchbar.js
index 86a2310..4a8d53d 100644
--- a/src/searchbar.js
+++ b/src/searchbar.js
@@ -460,7 +460,7 @@ Searchbar.prototype = {
     },
 
     _onActiveCollectionChanged: function() {
-        let searchType = Global.sourceManager.getActiveItem();
+        let searchType = Global.searchTypeManager.getActiveItem();
 
         if (Global.searchController.getString() != '' ||
             searchType.id != 'all') {



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