From b5ab1957032ea56b8dcfd35366764cc7321e4c94 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Mardelle Date: Mon, 28 Sep 2009 09:56:26 +0000 Subject: [PATCH] Fix problem when changing capture setting while connected to camcorder: http://www.kdenlive.org:80/mantis/view.php?id=1141 svn path=/trunk/kdenlive/; revision=3955 --- src/recmonitor.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/recmonitor.cpp b/src/recmonitor.cpp index d5450088..4ce37fff 100644 --- a/src/recmonitor.cpp +++ b/src/recmonitor.cpp @@ -30,6 +30,7 @@ #include #include #include +#include #if KDE_IS_VERSION(4,2,0) #include @@ -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) -- 2.39.2