Changed: SHow no-files text if there is no songs in playlist

fix-media-player
Nimetu 5 years ago
parent 52d6f89e1e
commit 6993a2731f

@ -487,9 +487,16 @@ void CMusicPlayer::updatePlayingInfo(const std::string info)
// *************************************************************************** // ***************************************************************************
void CMusicPlayer::clearPlayingInfo() void CMusicPlayer::clearPlayingInfo()
{
if (_Songs.empty())
{
updatePlayingInfo(CI18N::get("uiNoFiles").toUtf8());
}
else
{ {
updatePlayingInfo(""); updatePlayingInfo("");
} }
}
// *************************************************************************** // ***************************************************************************
void CMusicPlayer::update () void CMusicPlayer::update ()

Loading…
Cancel
Save