use ncurses pad instead of ncurses window by default

This commit is contained in:
Andrzej Rybczak
2009-02-18 21:45:54 +01:00
parent b210d3f270
commit c827c88993
8 changed files with 27 additions and 69 deletions

View File

@@ -99,7 +99,8 @@ void MediaLibrary::Refresh()
Songs->Display();
if (Albums->Empty())
{
*Albums << XY(0, 0) << "No albums found." << wrefresh;
*Albums << XY(0, 0) << "No albums found.";
Albums->Window::Refresh();
}
}
@@ -214,7 +215,8 @@ void MediaLibrary::Update()
Mpd->AddSearch(Config.media_lib_primary_tag, locale_to_utf_cpy(Artists->Current()));
if (Albums->Empty()) // left for compatibility with <mpd-0.14
{
*Albums << XY(0, 0) << "No albums found." << wrefresh;
*Albums << XY(0, 0) << "No albums found.";
Albums->Window::Refresh();
}
else
Mpd->AddSearch(MPD_TAG_ITEM_ALBUM, locale_to_utf_cpy(Albums->Current().second));