[gnome-music/gnome-3-12] clear playlist model before deleting the playlist.
- From: Vadim Rutkovsky <vrutkovsky src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/gnome-3-12] clear playlist model before deleting the playlist.
- Date: Fri, 4 Apr 2014 13:11:40 +0000 (UTC)
commit 8b8c85751bc84a3c21490b8c81399aa765f20589
Author: Sai Suman Prayaga <suman sai14 gmail com>
Date: Fri Apr 4 14:24:35 2014 +0530
clear playlist model before deleting the playlist.
gnomemusic/view.py | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gnomemusic/view.py b/gnomemusic/view.py
index 03f66c7..690cd15 100644
--- a/gnomemusic/view.py
+++ b/gnomemusic/view.py
@@ -1018,6 +1018,7 @@ class Playlist(ViewContainer):
self._model.get_path(_iter))
def _on_delete_activate(self, menuitem, data=None):
+ self._model.clear()
_iter = self.playlists_sidebar.get_generic_view().get_selection().get_selected()[1]
if not _iter:
return
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]