Check for mass storage mode before disk space before we capture an image
authorMohammed Sameer <msameer@foolab.org>
Fri, 4 Jan 2013 14:48:17 +0000 (16:48 +0200)
committerMohammed Sameer <msameer@foolab.org>
Fri, 4 Jan 2013 14:48:17 +0000 (16:48 +0200)
qml/ImagePage.qml

index 45b07ec..a719808 100644 (file)
@@ -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;
                 }