From 6d6c77bef2f4d7750e43e02d8c02f09ee5f2ae95 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Sun, 29 Jul 2007 10:35:41 +0000 Subject: fixed seeking git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@48 90c681e8-e032-0410-971d-27865f9a5e38 --- src/mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mainwindow.cpp') 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) -- cgit v1.2.3-13-gbd6f