playlist editor: do not display "Playlist is empty" message

master
Andrzej Rybczak 14 years ago
parent 69bd1bac97
commit ec5f271f17
  1. 9
      src/playlist_editor.cpp

@ -177,8 +177,6 @@ void PlaylistEditor::Update()
if (Config.titles_visibility)
{
title = "Playlist content";
if (list.size() > 0)
{
title += " (";
title += unsignedLongIntTo<std::string>::apply(list.size());
title += " item";
@ -186,7 +184,6 @@ void PlaylistEditor::Update()
title += ")";
else
title += "s)";
}
title.resize(Content->getWidth());
}
Content->setTitle(title);
@ -201,10 +198,10 @@ void PlaylistEditor::Update()
w = Playlists;
}
if (Content->reallyEmpty())
if (Playlists->empty() && Content->reallyEmpty())
{
*Content << NC::XY(0, 0) << "Playlist is empty.";
Content->Window::refresh();
Content->Window::clear();
Content->Window::display();
}
}

Loading…
Cancel
Save