diff options
author | Andrzej Rybczak <electricityispower@gmail.com> | 2009-05-03 19:02:31 +0200 |
---|---|---|
committer | Andrzej Rybczak <electricityispower@gmail.com> | 2009-05-03 19:02:31 +0200 |
commit | 6177d49f9fdb32c27265ba879195617182454de7 (patch) | |
tree | 1ccb337d88597613fc785e4aa7e5cef418af60ba /src/status.cpp | |
parent | 84a9af2ee984f30aa861dbe34cbf92f2207b0e9f (diff) |
new feature: two columns view in media library (albums and songs)
Diffstat (limited to 'src/status.cpp')
-rw-r--r-- | src/status.cpp | 8 |
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) |