[gnome-characters] window: Fix error after cancelling search
- From: Daiki Ueno <dueno src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-characters] window: Fix error after cancelling search
- Date: Thu, 24 Aug 2017 14:56:20 +0000 (UTC)
commit 0b2f7ac0b330e939d39bf6e87492e82702f21fb8
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]