From bf3a7a7715e3caa39fa512922167013a543369dd Mon Sep 17 00:00:00 2001 From: Andrzej Rybczak Date: Tue, 4 Sep 2012 22:57:58 +0200 Subject: [PATCH] do not clear playlists content, make idle notifications take care of it --- src/actions.cpp | 3 --- src/status.cpp | 2 -- 2 files changed, 5 deletions(-) diff --git a/src/actions.cpp b/src/actions.cpp index 032ab9c3..630293ee 100644 --- a/src/actions.cpp +++ b/src/actions.cpp @@ -1062,10 +1062,7 @@ void Add::Run() Statusbar() << "Adding..."; wFooter->refresh(); if (myScreen == myPlaylistEditor) - { Mpd.AddToPlaylist(myPlaylistEditor->Playlists->current().value(), path); - myPlaylistEditor->Content->clear(); // make it refetch content of playlist - } else { const char lastfm_url[] = "lastfm://"; diff --git a/src/status.cpp b/src/status.cpp index b8270049..ab5dcb4a 100644 --- a/src/status.cpp +++ b/src/status.cpp @@ -305,8 +305,6 @@ void NcmpcppStatusChanged(MPD::Connection *, MPD::StatusChanges changed, void *) else myLibrary->Tags->clear(); } - if (myPlaylistEditor->Main()) - myPlaylistEditor->Content->clear(); changed.DBUpdating = 1; } if (changed.PlayerState)