improve handling columns in media library a bit

given column should clear only the first column on its right, not all.
This commit is contained in:
Andrzej Rybczak
2009-11-13 16:39:43 +01:00
parent 495ec25a0a
commit 9a5a053ec3
3 changed files with 4 additions and 9 deletions

View File

@@ -292,10 +292,7 @@ void NcmpcppStatusChanged(Connection *, StatusChanges changed, void *)
if (myLibrary->Main())
{
if (myLibrary->Columns() == 2)
{
myLibrary->Albums->Clear();
myLibrary->Songs->Clear();
}
else
myLibrary->Artists->Clear();
}