]> git.sesse.net Git - kdenlive/commitdiff
cleanup
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Sun, 8 Aug 2010 21:38:26 +0000 (21:38 +0000)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Sun, 8 Aug 2010 21:38:26 +0000 (21:38 +0000)
svn path=/trunk/kdenlive/; revision=4690

src/timecode.cpp
src/timecodedisplay.cpp

index 8303c59c740a8faf58508fb83af75c14e23399ad..bcea5d5c1caeaaa664be01b598ef8b4c725e836d 100644 (file)
@@ -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 {
index 7916ebdd784bdad15986e460a8bcb47e7d6bca05..77b49599dbabe3323b728571cc05f53d50fd056a 100644 (file)
@@ -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);
     }
 }