diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2008-10-25 12:25:02 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2008-10-25 12:25:02 +0000 |
| commit | e656da41cbb9ed65d5c72356d490d633306adc56 (patch) | |
| tree | fd36dd1566c4c4cefb06010d4a22f4a0af1aeab4 /src/ui/mainwindow.cpp | |
| parent | c635029083e9b076fbfc20492f948678933eae13 (diff) | |
| download | qmmp-e656da41cbb9ed65d5c72356d490d633306adc56.tar.gz qmmp-e656da41cbb9ed65d5c72356d490d633306adc56.tar.bz2 qmmp-e656da41cbb9ed65d5c72356d490d633306adc56.zip | |
fixed some event-handling bugs
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@596 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/ui/mainwindow.cpp')
| -rw-r--r-- | src/ui/mainwindow.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/ui/mainwindow.cpp b/src/ui/mainwindow.cpp index eb4d2c118..f12dbd216 100644 --- a/src/ui/mainwindow.cpp +++ b/src/ui/mainwindow.cpp @@ -218,6 +218,7 @@ void MainWindow::play() } } } + qApp->processEvents(); } void MainWindow::replay() @@ -259,6 +260,7 @@ void MainWindow::stop() //display->setTime(0); m_core->stop(); } + void MainWindow::next() { if (!m_playListModel->isEmptyQueue()) @@ -267,20 +269,19 @@ void MainWindow::next() } else if (!m_playListModel->next()) { - stop(); display->hideTimeDisplay(); return; } m_playlist->update(); if (m_core->state() != Qmmp::Stopped) { - stop(); m_elapsed = 0; play(); } else display->hideTimeDisplay(); } + void MainWindow::previous() { if (!m_playListModel->previous()) @@ -292,7 +293,7 @@ void MainWindow::previous() m_playlist->update(); if (m_core->state() != Qmmp::Stopped) { - stop(); + m_elapsed = 0; play(); } else |
