Commit 21ebf568 authored by Michael Pyne's avatar Michael Pyne

Fix my commit which caused JuK to crash when hitting Enter in the search...

Fix my commit which caused JuK to crash when hitting Enter in the search widget when there are 0 results.

I will backport to 3.3.

CCMAIL:89868@bugs.kde.org

svn path=/trunk/kdemultimedia/juk/; revision=352534
parent 7338a6b9
......@@ -101,7 +101,7 @@ StatusLabel::~StatusLabel()
void StatusLabel::updateCurrent()
{
//kdDebug(65432) << k_funcinfo << endl;
kdDebug(65432) << k_funcinfo << endl;
// Use a hack to always show the currently playing playlist in the status
// bar. We can't change PlaylistBox::currentPlaylist() to do this as that
......@@ -126,7 +126,7 @@ void StatusLabel::updateCurrent()
void StatusLabel::updateData()
{
//kdDebug(65432) << k_funcinfo << endl;
kdDebug(65432) << k_funcinfo << endl;
if(!playlist()->playing()) {
setItemTotalTime(0);
......@@ -151,7 +151,7 @@ void StatusLabel::updateData()
m_playlistLabel->setText(playlist()->name());
m_trackLabel->setText(i18n("1 item", "%n items", playlist()->count()) + " - " + time);
}
else
else if(Playlist::playingItem())
updateCurrent();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment