[gnome-music/wip/merge: 329/343] Fixs Issue #101 Crashes on cancelling selection
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/merge: 329/343] Fixs Issue #101 Crashes on cancelling selection
- Date: Thu, 25 Jul 2013 11:40:06 +0000 (UTC)
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]