[gnome-music/wip/jfelder/searchbar-child: 2/10] window: Fix disable selection-mode on search



commit 10761ff893c49263bcb9ef11c17ecccafe8c3de3
Author: Jean Felder <jfelder src gnome org>
Date:   Thu Nov 15 14:28:14 2018 +0100

    window: Fix disable selection-mode on search
    
    Always disable selection-mode when entering or leaving search mode.

 gnomemusic/window.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gnomemusic/window.py b/gnomemusic/window.py
index a272fe23..aacfb9ed 100644
--- a/gnomemusic/window.py
+++ b/gnomemusic/window.py
@@ -457,8 +457,8 @@ class Window(Gtk.ApplicationWindow):
                     and child != self.curr_view._artist_albums_widget):
                 self._stack.set_visible_child(self.views[View.ALBUM])
 
-            if self.props.selection_mode:
-                self.props.selection_mode = False
+        if self.props.selection_mode:
+            self.props.selection_mode = False
 
     @log
     def _switch_back_from_childview(self, klass=None):


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