[gnome-characters] window: Fix error when searching on recently used page



commit 7fa02c8ebed2cf531fd898ba925a7ecdac369f7f
Author: Daiki Ueno <dueno src gnome org>
Date:   Thu Oct 5 13:16:59 2017 +0200

    window: Fix error when searching on recently used page
    
    https://bugzilla.gnome.org/show_bug.cgi?id=788522

 src/window.js |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/window.js b/src/window.js
index 07a5f0b..10c51e0 100644
--- a/src/window.js
+++ b/src/window.js
@@ -418,7 +418,8 @@ const MainView = new Lang.Class({
     },
 
     cancelSearch: function() {
-        this.visible_child.cancelSearch();
+        let characterList = this.get_child_by_name('search-result');
+        characterList.cancelSearch();
     },
 
     setPage: function(category) {


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