Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 3d73af3e authored by Allan Sandfeld Jensen's avatar Allan Sandfeld Jensen

Pause-patch by Bart Coppens.

svn path=/trunk/kdemultimedia/juk/; revision=376900
parent 262b4c70
......@@ -42,6 +42,15 @@ aKodePlayer::~aKodePlayer()
void aKodePlayer::play(const FileHandle &file)
{
kdDebug( 65432 ) << k_funcinfo << endl;
if (file == FileHandle::null()) { // null FileHandle file means unpauze
if (paused())
m_player->play();
else
stop();
return;
}
QString filename = file.absFilePath();
delete m_currentFile;
m_currentFile = qstrdup(filename.local8Bit());
......@@ -102,7 +111,7 @@ bool aKodePlayer::playing() const
bool aKodePlayer::paused() const
{
return false;
return m_player && (m_player->state() == aKode::Player::Paused);
}
int aKodePlayer::totalTime() const
......
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