Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Fix windows screen grab

parent 5e5204ce
Pipeline #1561 passed with stage
in 14 minutes and 17 seconds
......@@ -158,6 +158,11 @@ QAction *RecManager::switchAction() const
void RecManager::stopCapture()
{
if (m_captureProcess) {
connect(m_captureProcess, &QProcess::stateChanged, [&](QProcess::ProcessState status) {
if (status == QProcess::NotRunning) {
emit addClipToProject(m_captureFile);
}
});
slotRecord(false);
} else if (pCore->getMediaCaptureState() == 1 && (m_checkAudio || m_checkVideo)) {
// QMediaRecorder::RecordingState value is 1
......@@ -208,7 +213,6 @@ void RecManager::slotRecord(bool record)
pCore->startMediaCapture(m_checkAudio, m_checkVideo, m_captureFile, audioDevice);
} else {
stopCapture();
emit addClipToProject(m_captureFile);
}
return;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment