Skip to content

Commit

Permalink
Kill MPlayer if neccessary in QMPProcess::quit()
Browse files Browse the repository at this point in the history
  • Loading branch information
jgehring committed May 24, 2010
1 parent f269bc7 commit 60b242d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/qmpwidget.cpp
Expand Up @@ -262,6 +262,10 @@ class QMPProcess : public QProcess
void quit()
{
writeCommand("quit");
QProcess::waitForFinished(100);
if (QProcess::state() == QProcess::Running) {
QProcess::kill();
}
QProcess::waitForFinished(-1);
}

Expand Down

0 comments on commit 60b242d

Please sign in to comment.