[gnome-characters/wip/dueno/emoji] window: Fix error after cancelling search



commit ad5833532f6037323a51d959605c49d1e8d26082
Author: Daiki Ueno <dueno src gnome org>
Date:   Tue Aug 22 13:34:05 2017 +0200

    window: Fix error after cancelling search

 src/window.js |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/window.js b/src/window.js
index b9d5659..e5a978c 100644
--- a/src/window.js
+++ b/src/window.js
@@ -161,8 +161,10 @@ var MainWindow = new Lang.Class({
 
         this._searchActive = v;
 
-        if (this._searchActive)
-            this._categoryList.unselect_all();
+        if (this._searchActive) {
+            let categoryList = this._categoryListView.get_visible_child();
+            categoryList.unselect_all();
+        }
 
         this.notify('search-active');
     },


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