Commit 7fe64d10 authored by Michael Pyne's avatar Michael Pyne

Fix 'trying to add empty file warnings'.

Finally backtraced it... to a signal handler for PlayerManager.  Turns
out we get the Stopped state with an old state of Loading after all,
which was being handled in the else block which assumed
buffering/playback, and tried to read a (null) FileHandle as a result
since nothing was actually playing.
parent 2889fd1f
......@@ -530,6 +530,10 @@ void PlayerManager::slotStateChanged(Phonon::State newstate, Phonon::State oldst
emit signalStop();
}
else if(newstate == Phonon::StoppedState) {
JuK::JuKInstance()->setWindowTitle(i18n("JuK"));
emit signalStop();
}
else if(newstate == Phonon::PausedState) {
emit signalPause();
}
......
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