From: Mohammed Sameer Date: Wed, 13 Feb 2013 22:59:40 +0000 (+0200) Subject: Enable resolution changing only if camera is idle X-Git-Url: https://cgit.sxemacs.org/?a=commitdiff_plain;h=41f5da03d8d4dcf9943d83c4ac492e4bc748d5a1;p=harmattan%2Fcameraplus Enable resolution changing only if camera is idle --- 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; } } }