- if (device_selector->currentIndex() != SCREENGRAB) video_frame->setText(i18n("Not connected"));
- else video_frame->setPixmap(mergeSideBySide(KIcon("video-display").pixmap(QSize(50, 50)), i18n("Press record button\nto start screen capture\nFiles will be saved in:\n%1", KdenliveSettings::capturefolder())));
+ if (device_selector->currentIndex() != SCREENGRAB) {
+ video_frame->setText(i18n("Not connected"));
+ } else {
+ if (m_captureProcess->exitCode() != 0) {
+ video_frame->setText(i18n("Capture crashed, please check your parameters\nRecordMyDesktop exit code: %1", QString::number(m_captureProcess->exitCode())));
+ } else {
+ video_frame->setPixmap(mergeSideBySide(KIcon("video-display").pixmap(QSize(50, 50)), i18n("Press record button\nto start screen capture\nFiles will be saved in:\n%1", KdenliveSettings::capturefolder())));
+ }
+ }