Enable resolution changing only if camera is idle
authorMohammed Sameer <msameer@foolab.org>
Wed, 13 Feb 2013 22:59:40 +0000 (00:59 +0200)
committerMohammed Sameer <msameer@foolab.org>
Wed, 13 Feb 2013 22:59:40 +0000 (00:59 +0200)
qml/VideoResolutionSettings.qml

index eb762ae..6b4308c 100644 (file)
@@ -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;
                         }
                 }
         }