From 086cc62c8fd7da406bf7e724778149c40b8aeeaa Mon Sep 17 00:00:00 2001 From: Mohammed Sameer Date: Sun, 18 Aug 2013 00:10:58 +0300 Subject: [PATCH] Don't try to change the resolution while we are changing the device. This will lead to invalid resolution being set. resetCamera() will take care of setting the resolution after we are done changing the device --- qml/MainPage.qml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/qml/MainPage.qml b/qml/MainPage.qml index c4f5de4..d45fac0 100644 --- a/qml/MainPage.qml +++ b/qml/MainPage.qml @@ -99,15 +99,21 @@ CameraPage { } onImageAspectRatioChanged: { - imageSettings.setImageResolution() + if (!root.deviceChangeInProgress) { + imageSettings.setImageResolution() + } } onImageResolutionChanged: { - imageSettings.setImageResolution() + if (!root.deviceChangeInProgress) { + imageSettings.setImageResolution() + } } onVideoResolutionChanged: { - videoSettings.setVideoResolution() + if (!root.deviceChangeInProgress) { + videoSettings.setVideoResolution() + } } } -- 2.25.1