aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mainwindow.cpp2
-rw-r--r--src/mainwindow.h2
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;