summaryrefslogtreecommitdiff
path: root/src/status.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/status.cpp')
-rw-r--r--src/status.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/status.cpp b/src/status.cpp
index cc65a023..a07d90b8 100644
--- a/src/status.cpp
+++ b/src/status.cpp
@@ -287,7 +287,13 @@ void NcmpcppStatusChanged(Connection *Mpd, StatusChanges changed, void *)
myTagEditor->Albums->Clear(0);
myTagEditor->Dirs->Clear(0);
# endif // HAVE_TAGLIB_H
- myLibrary->Artists->Clear(0);
+ if (myLibrary->Columns() == 2)
+ {
+ myLibrary->Albums->Clear();
+ myLibrary->Songs->Clear(0);
+ }
+ else
+ myLibrary->Artists->Clear(0);
myPlaylistEditor->Content->Clear(0);
}
if (changed.PlayerState)