From adc59ac93bf343c88eb664fdb4004fbd7823805c Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Tue, 18 Mar 2008 13:48:24 +0000 Subject: fixed seeking and time tracking git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@279 90c681e8-e032-0410-971d-27865f9a5e38 --- src/ui/mainwindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/ui/mainwindow.cpp') diff --git a/src/ui/mainwindow.cpp b/src/ui/mainwindow.cpp index 64996785e..083a468c2 100644 --- a/src/ui/mainwindow.cpp +++ b/src/ui/mainwindow.cpp @@ -188,6 +188,7 @@ void MainWindow::play() if (m_core->play(s)) { display->setTime(0); + m_generalHandler->setTime(0); display->setMaxTime(m_core->length()); } else @@ -325,7 +326,6 @@ void MainWindow::showOutputState(const OutputState &st) case OutputState::Playing: { m_generalHandler->setState(General::Playing); - m_generalHandler->setTime(st.elapsedSeconds()); if (m_playListModel->currentItem()) { SongInfo info; @@ -361,6 +361,7 @@ void MainWindow::showOutputState(const OutputState &st) } case OutputState::Info: { + m_generalHandler->setTime(st.elapsedSeconds()); m_elapsed = st.elapsedSeconds(); break; } -- cgit v1.2.3-13-gbd6f