]> git.sesse.net Git - kdenlive/blobdiff - src/monitormanager.cpp
* Fix possible crash when creating new document
[kdenlive] / src / monitormanager.cpp
index f38a210a0d93f45603b61e06759a5d55eb79d891..00515de5fda074295e45b5db5963eb05a04d3956 100644 (file)
@@ -131,7 +131,7 @@ void MonitorManager::slotEnd() {
 
 void MonitorManager::resetProfiles(Timecode tc) {
     m_timecode = tc;
-    slotResetProfiles();
+    QTimer::singleShot(300, this, SLOT(slotResetProfiles()));
 }
 
 void MonitorManager::slotResetProfiles() {
@@ -139,11 +139,6 @@ void MonitorManager::slotResetProfiles() {
     m_clipMonitor->resetProfile();
     activateMonitor("project");
     m_projectMonitor->resetProfile();
-    char *tmp;
-    tmp = (char *) qstrdup(QString(KdenliveSettings::current_profile()).toUtf8().data());
-    setenv("MLT_PROFILE", tmp, 1);
-    delete[] tmp;
-
     //m_projectMonitor->refreshMonitor(true);
 }