} else {
if (device_selector->currentIndex() != SCREENGRAB) {
video_frame->setText(i18n("Not connected"));
} else {
int code = m_captureProcess->exitCode();
if (code != 0 && code != 255) {
} else {
if (device_selector->currentIndex() != SCREENGRAB) {
video_frame->setText(i18n("Not connected"));
} else {
int code = m_captureProcess->exitCode();
if (code != 0 && code != 255) {