[gnome-music/wip/merge: 329/343] Fixs Issue #101 Crashes on cancelling selection



commit 5a1df2d14a26e9ba4d1a7ab7aa9deb3ac4cf0890
Author: Shivani Poddar <shivani poddar92 gmail com>
Date:   Mon Jul 22 22:26:14 2013 +0530

    Fixs Issue #101 Crashes on cancelling selection

 gnomemusic/view.py |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/gnomemusic/view.py b/gnomemusic/view.py
index dd57ea6..62786e5 100644
--- a/gnomemusic/view.py
+++ b/gnomemusic/view.py
@@ -511,5 +511,6 @@ class Artists (ViewContainer):
         else:
             self.view.get_generic_view().get_selection().set_mode(
                 Gtk.SelectionMode.SINGLE)
-            self.view.get_generic_view().get_selection().select_iter(
-                self._last_selection)
+            if self._last_selection is not None:
+                self.view.get_generic_view().get_selection().select_iter(
+                    self._last_selection)


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