Reset toolbar when device gets changed
[harmattan/cameraplus] / qml / ImageOverlay.qml
index e8c88e3..77fb6b5 100644 (file)
@@ -294,4 +294,13 @@ Item {
         }
     }
 
+    function resetToolBar() {
+        if (toolBar.depth() > 1) {
+            toolBar.pop()
+        }
+    }
+
+    function cameraDeviceChanged() {
+        resetToolBar()
+    }
 }