From c199c097bfa84f1737b842f0bfeaff4b508e4513 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Mardelle Date: Sun, 8 Aug 2010 21:38:26 +0000 Subject: [PATCH] cleanup svn path=/trunk/kdenlive/; revision=4690 --- src/timecode.cpp | 2 -- src/timecodedisplay.cpp | 3 +-- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/timecode.cpp b/src/timecode.cpp index 8303c59c..bcea5d5c 100644 --- a/src/timecode.cpp +++ b/src/timecode.cpp @@ -362,8 +362,6 @@ const QString Timecode::getTimecodeDropFrame(int framenumber) const int d = floor(framenumber / m_framesPer10Minutes); int m = framenumber % m_framesPer10Minutes; - int framesPerMinute = round(m_realFps * 60) - m_dropFrames; //Number of frames per minute is the round of the framerate * 60 minus the number of dropped frames - if (m > m_dropFrames) { framenumber += (m_dropFrames * 9 * d) + m_dropFrames * (floor((m - m_dropFrames) / (round(m_realFps * 60) - m_dropFrames))); } else { diff --git a/src/timecodedisplay.cpp b/src/timecodedisplay.cpp index 7916ebdd..77b49599 100644 --- a/src/timecodedisplay.cpp +++ b/src/timecodedisplay.cpp @@ -155,7 +155,7 @@ void TimecodeDisplay::setValue(int value) if (m_maximum > m_minimum && value > m_maximum) value = m_maximum; - if (value == getValue()) return; + if (value == getValue() && !lineedit->text().isEmpty()) return; downarrow->setEnabled(value > m_minimum); uparrow->setEnabled(m_maximum < m_minimum || value < m_maximum); @@ -163,7 +163,6 @@ void TimecodeDisplay::setValue(int value) lineedit->setText(QString::number(value)); else { QString v = m_timecode.getTimecodeFromFrames(value); - kDebug() << "// SETTING TO: " << value << " = " << v << "( " << m_timecode.fps(); lineedit->setText(v); } } -- 2.39.2