From 859fa1473da592f6e7539f127b7d68215d415c06 Mon Sep 17 00:00:00 2001 From: Mohammed Sameer Date: Fri, 4 Jan 2013 16:48:17 +0200 Subject: [PATCH] Check for mass storage mode before disk space before we capture an image --- qml/ImagePage.qml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/qml/ImagePage.qml b/qml/ImagePage.qml index 45b07ec..a719808 100644 --- a/qml/ImagePage.qml +++ b/qml/ImagePage.qml @@ -44,13 +44,13 @@ CameraPage { return; } - if (!checkDiskSpace()) { - showError(qsTr("Not enough space to capture images.")); + if (!fileSystem.available) { + showError(qsTr("Camera cannot capture images in mass storage mode.")); return; } - if (!fileSystem.available) { - showError(qsTr("Camera cannot capture images in mass storage mode.")); + if (!checkDiskSpace()) { + showError(qsTr("Not enough space to capture images.")); return; } -- 2.34.1