[gnome-music] clear playlist model before deleting the playlist.
- From: Vadim Rutkovsky <vrutkovsky src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music] clear playlist model before deleting the playlist.
- Date: Fri, 4 Apr 2014 09:23:39 +0000 (UTC)
commit cc31997a5fc5698c912f16b1d827319fb863cf49
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 6b3ab87..1296ba5 100644
--- a/gnomemusic/view.py
+++ b/gnomemusic/view.py
@@ -999,6 +999,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]