[gnome-music] window: Disable selection mode when search bar is closed in Search view



commit c939300dae0c599fcf11b5148cf814157bd12ddb
Author: Arnel Borja <arnelborja src gnome org>
Date:   Wed May 14 21:21:34 2014 +0800

    window: Disable selection mode when search bar is closed in Search view
    
    This prevents search mode to persist after showing the previous view.

 gnomemusic/window.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gnomemusic/window.py b/gnomemusic/window.py
index 4d3518e..5f53bb7 100644
--- a/gnomemusic/window.py
+++ b/gnomemusic/window.py
@@ -351,6 +351,8 @@ class Window(Gtk.ApplicationWindow):
         if not button.get_active() and self.curr_view == self.views[4] and \
            self.toolbar._state == ToolbarState.MAIN:
             self._stack.set_visible_child(self.prev_view)
+            if self.toolbar._selectionMode:
+                self.toolbar.set_selection_mode(False)
 
     @log
     def _on_selection_mode_changed(self, widget, data=None):


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