]> git.sesse.net Git - kdenlive/blobdiff - src/kdenlivedoc.cpp
cleanup
[kdenlive] / src / kdenlivedoc.cpp
index dafa9aea6435dc61befc291f0dd72f0b66427c5a..80037d38630e2d232e175a43e74cc7229ecb1e0b 100644 (file)
@@ -229,10 +229,6 @@ KdenliveDoc::KdenliveDoc(const KUrl &url, const KUrl &projectFolder, QUndoGroup
     KStandardDirs::makeDir(m_projectFolder.path(KUrl::AddTrailingSlash) + "thumbs/");
     KStandardDirs::makeDir(m_projectFolder.path(KUrl::AddTrailingSlash) + "ladspa/");
 
-    kDebug() << "Kdenlive document, init timecode: " << m_fps;
-    if (m_fps == 30000.0 / 1001.0) m_timecode.setFormat(m_fps, true);
-    else m_timecode.setFormat(m_fps);
-
     //kDebug() << "// SETTING SCENE LIST:\n\n" << m_document.toString();
     connect(m_autoSaveTimer, SIGNAL(timeout()), this, SLOT(slotAutoSave()));
 }
@@ -720,8 +716,8 @@ bool KdenliveDoc::setProfilePath(QString path)
     m_width = m_profile.width;
     m_height = m_profile.height;
     kDebug() << "Kdenlive document, init timecode from path: " << path << ",  " << m_fps;
-    if (m_fps == 30000.0 / 1001.0) m_timecode.setFormat(m_fps, true);
-    else m_timecode.setFormat(m_fps);
+    if (m_fps / 1.00 == (int)m_fps) m_timecode.setFormat(m_fps);
+    else m_timecode.setFormat(m_fps, true);
     return (current_fps != m_fps);
 }