diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2007-07-29 10:35:41 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2007-07-29 10:35:41 +0000 |
| commit | 6d6c77bef2f4d7750e43e02d8c02f09ee5f2ae95 (patch) | |
| tree | 44a3c5d468ac64f0da5f04c7e4420579f6b79194 | |
| parent | 4a84b5193870af833d7c4539200e9a7ea0d47ddb (diff) | |
| download | qmmp-6d6c77bef2f4d7750e43e02d8c02f09ee5f2ae95.tar.gz qmmp-6d6c77bef2f4d7750e43e02d8c02f09ee5f2ae95.tar.bz2 qmmp-6d6c77bef2f4d7750e43e02d8c02f09ee5f2ae95.zip | |
fixed seeking
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@48 90c681e8-e032-0410-971d-27865f9a5e38
| -rw-r--r-- | src/mainwindow.cpp | 2 | ||||
| -rw-r--r-- | src/mainwindow.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 3abcdbfe1..31b5c2c1d 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -227,7 +227,7 @@ void MainWindow::forward() void MainWindow::backward() { - seek(m_elapsed - KEY_OFFSET); + seek(qMax(0,m_elapsed - KEY_OFFSET)); } void MainWindow::setVolume(int volume, int balance) diff --git a/src/mainwindow.h b/src/mainwindow.h index d121fc1d1..54b98f6e3 100644 --- a/src/mainwindow.h +++ b/src/mainwindow.h @@ -114,7 +114,7 @@ private: void readSettings(); void writeSettings(); void createActions(); - double seeking; + bool seeking; SoundCore *m_core; QMenu *m_mainMenu; MainDisplay *display; |
