aboutsummaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2007-07-29 10:35:41 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2007-07-29 10:35:41 +0000
commit6d6c77bef2f4d7750e43e02d8c02f09ee5f2ae95 (patch)
tree44a3c5d468ac64f0da5f04c7e4420579f6b79194 /src/mainwindow.cpp
parent4a84b5193870af833d7c4539200e9a7ea0d47ddb (diff)
downloadqmmp-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
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp2
1 files changed, 1 insertions, 1 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)