[gnome-documents] searchbar: fix a thinko



commit 5ae9b25a969cf847eaedf4752a342c1f5b7e22aa
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 98c83ca..0a66eaa 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]