diff options
author | Andrzej Rybczak <electricityispower@gmail.com> | 2017-01-06 13:58:22 +0100 |
---|---|---|
committer | Andrzej Rybczak <electricityispower@gmail.com> | 2017-01-06 13:58:22 +0100 |
commit | 7d502e42ba08f466a508fd25b67d7e31b1330720 (patch) | |
tree | 8502b66f4e399f864407967e41db8c025a0d100a /src/status.cpp | |
parent | e1919599764b57dd1b1bbc3c16ef15604079ed8b (diff) |
Check if songs are in playlist when displaying them, not up-front
Diffstat (limited to 'src/status.cpp')
-rw-r--r-- | src/status.cpp | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/src/status.cpp b/src/status.cpp index eec511e2..761497dc 100644 --- a/src/status.cpp +++ b/src/status.cpp @@ -439,21 +439,6 @@ void Status::Changes::playlist(unsigned previous_version) myPlaylist->reloadTotalLength(); myPlaylist->reloadRemaining(); - - if (isVisible(myBrowser)) - markSongsInPlaylist(myBrowser->main()); - if (isVisible(mySearcher)) - markSongsInPlaylist(mySearcher->main()); - if (isVisible(myLibrary)) - { - markSongsInPlaylist(myLibrary->Songs); - myLibrary->Songs.refresh(); - } - if (isVisible(myPlaylistEditor)) - { - markSongsInPlaylist(myPlaylistEditor->Content); - myPlaylistEditor->Content.refresh(); - } } void Status::Changes::storedPlaylists() @@ -815,5 +800,7 @@ void Status::Changes::outputs() { # ifdef ENABLE_OUTPUTS myOutputs->fetchList(); + if (isVisible(myOutputs)) + myOutputs->refreshWindow(); # endif // ENABLE_OUTPUTS } |