Don't show the error unless page is Active
authorMohammed Sameer <msameer@foolab.org>
Sat, 8 Dec 2012 20:38:44 +0000 (22:38 +0200)
committerMohammed Sameer <msameer@foolab.org>
Sat, 8 Dec 2012 20:38:44 +0000 (22:38 +0200)
qml/PostCapturePage.qml

index f265ba5..460389f 100644 (file)
@@ -65,7 +65,7 @@ CameraPage {
                 anchors.fill: parent
 
                 path: Path {
-                        startX: - view.width
+                        startX: -view.width
                         startY: view.height / 2
                         PathLine { x: view.width * 2; y: view.height / 2 }
                 }
@@ -95,8 +95,6 @@ CameraPage {
                         }
                 }
 
-                // TODO: tap post capture and then immediately back and you can see the error
-                // and the standby widget underneath it.
                 delegate: Item {
                         width: view.width
                         height: view.height
@@ -105,7 +103,7 @@ CameraPage {
                                 width: view.width - 10
                                 height: view.height
                                 anchors.centerIn: parent
-                                visible: item.error
+                                visible: item.error && page.status == PageStatus.Active
                                 text: qsTr("Failed to load preview");
                                 verticalAlignment: Text.AlignVCenter
                                 horizontalAlignment: Text.AlignHCenter