From 91fcbf678120e8c8638809fd93a17ef26b2c3e23 Mon Sep 17 00:00:00 2001 From: Andrzej Rybczak Date: Mon, 16 Aug 2010 14:30:04 +0200 Subject: [PATCH] playlist editor: fix filter issues --- src/playlist_editor.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/playlist_editor.cpp b/src/playlist_editor.cpp index 8b6c5235..f85e58c6 100644 --- a/src/playlist_editor.cpp +++ b/src/playlist_editor.cpp @@ -118,7 +118,7 @@ void PlaylistEditor::SwitchTo() void PlaylistEditor::Update() { - if (Playlists->Empty()) + if (Playlists->ReallyEmpty()) { Content->Clear(); MPD::TagList list; @@ -133,7 +133,7 @@ void PlaylistEditor::Update() Playlists->Refresh(); } - if (!Playlists->Empty() && Content->Empty()) + if (!Playlists->Empty() && Content->ReallyEmpty()) { Content->Reset(); MPD::SongList list; @@ -161,14 +161,14 @@ void PlaylistEditor::Update() Content->Display(); } - if (w == Content && Content->Empty()) + if (w == Content && Content->ReallyEmpty()) { Content->HighlightColor(Config.main_highlight_color); Playlists->HighlightColor(Config.active_column_color); w = Playlists; } - if (Content->Empty()) + if (Content->ReallyEmpty()) { *Content << XY(0, 0) << "Playlist is empty."; Content->Window::Refresh();