]> git.sesse.net Git - kdenlive/commitdiff
Fix problem when changing capture setting while connected to camcorder:
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Mon, 28 Sep 2009 09:56:26 +0000 (09:56 +0000)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Mon, 28 Sep 2009 09:56:26 +0000 (09:56 +0000)
http://www.kdenlive.org:80/mantis/view.php?id=1141

svn path=/trunk/kdenlive/; revision=3955

src/recmonitor.cpp

index d5450088c31bd0cd216668064b548badbf7c0c74..4ce37fff6e30aa0df83bfc9e3e00f89322a4beb0 100644 (file)
@@ -30,6 +30,7 @@
 #include <KComboBox>
 #include <KIO/NetAccess>
 #include <KFileItem>
+#include <KMessageBox>
 
 #if KDE_IS_VERSION(4,2,0)
 #include <KDiskFreeSpaceInfo>
@@ -159,7 +160,12 @@ void RecMonitor::slotConfigure()
 void RecMonitor::slotUpdateCaptureFolder()
 {
     if (m_captureProcess) m_captureProcess->setWorkingDirectory(KdenliveSettings::capturefolder());
-    slotVideoDeviceChanged(device_selector->currentIndex());
+    if (m_captureProcess->state() != QProcess::NotRunning) {
+        if (device_selector->currentIndex() == FIREWIRE)
+            KMessageBox::information(this, i18n("You need to disconnect and reconnect in the capture monitor to apply your changes"), i18n("Capturing"));
+        else KMessageBox::information(this, i18n("You need to stop capture before your changes can be applied"), i18n("Capturing"));
+    }
+    else slotVideoDeviceChanged(device_selector->currentIndex());
     kDebug() << "// UPDATE CAPT FOLD: " << KdenliveSettings::capturefolder();
 
 #if KDE_IS_VERSION(4,2,0)