]> git.sesse.net Git - kdenlive/commitdiff
Fix screencapture buttons: http://kdenlive.org/mantis/view.php?id=2643
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Tue, 1 Jan 2013 18:08:05 +0000 (19:08 +0100)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Tue, 1 Jan 2013 18:08:05 +0000 (19:08 +0100)
src/recmonitor.cpp

index 3c9f3cea7dd1a105dc88fc25823ff3f254acf6cf..cb117df95ecaba0ca923ee1047db9e35155c2d5a 100644 (file)
@@ -229,6 +229,7 @@ void RecMonitor::slotVideoDeviceChanged(int ix)
     QString capturename;
     m_previewSettings->setEnabled(ix == VIDEO4LINUX || ix == BLACKMAGIC);
     control_frame->setVisible(ix == VIDEO4LINUX);
+    m_playAction->setVisible(ix != SCREENGRAB);
     m_fwdAction->setVisible(ix == FIREWIRE);
     m_discAction->setVisible(ix == FIREWIRE);
     m_rewAction->setVisible(ix == FIREWIRE);
@@ -717,6 +718,7 @@ void RecMonitor::slotRecord()
            m_captureArgs << path;
            
             m_isCapturing = true;
+           m_recAction->setEnabled(false);
             /*if (KdenliveSettings::rmd_capture_audio()) {
                 m_captureArgs << "--freq" << KdenliveSettings::rmd_freq();
                 m_captureArgs << "--channels" << QString::number(KdenliveSettings::rmd_audio_channels());
@@ -835,6 +837,9 @@ void RecMonitor::slotProcessStatus(QProcess::ProcessState status)
             m_fwdAction->setEnabled(false);
             m_recAction->setEnabled(false);
         }
+        else {
+           m_recAction->setEnabled(true);
+       }
         m_isPlaying = false;
         m_playAction->setIcon(m_playIcon);
         m_recAction->setChecked(false);
@@ -860,7 +865,7 @@ void RecMonitor::slotProcessStatus(QProcess::ProcessState status)
         // update free space info
         slotUpdateFreeSpace();
     } else {
-        if (device_selector->currentIndex() != SCREENGRAB) m_stopAction->setEnabled(true);
+        if (device_selector->currentIndex()) m_stopAction->setEnabled(true);
         device_selector->setEnabled(false);
     }
 }