From 41f5da03d8d4dcf9943d83c4ac492e4bc748d5a1 Mon Sep 17 00:00:00 2001 From: Mohammed Sameer Date: Thu, 14 Feb 2013 00:59:40 +0200 Subject: [PATCH] Enable resolution changing only if camera is idle --- qml/VideoResolutionSettings.qml | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/qml/VideoResolutionSettings.qml b/qml/VideoResolutionSettings.qml index eb762ae..6b4308c 100644 --- a/qml/VideoResolutionSettings.qml +++ b/qml/VideoResolutionSettings.qml @@ -33,7 +33,7 @@ Column { ButtonRow { width: parent.width - + enabled: cam.idle exclusive: false Repeater { @@ -48,14 +48,7 @@ Column { delegate: Button { text: resolutions.name(resolutionName, resolution); checked: settings.videoResolution == resolutionName; - onClicked: { - if (!cam.idle) { - showError(qsTr("Camera is busy saving.")); - return; - } - - settings.videoResolution = resolutionName; - } + onClicked: settings.videoResolution = resolutionName; } } } -- 2.34.1