Don't do an initial population of the stack when we are initiated.
authorMohammed Sameer <msameer@foolab.org>
Thu, 27 Dec 2012 04:21:49 +0000 (06:21 +0200)
committerMohammed Sameer <msameer@foolab.org>
Thu, 27 Dec 2012 04:21:49 +0000 (06:21 +0200)
We end up pushing items twice

qml/CameraToolBar.qml

index b82e825..84cb019 100644 (file)
@@ -74,12 +74,6 @@ Rectangle {
         onWidthChanged: Layout.layout();
         onTargetWidthChanged: Layout.layout();
 
-        Component.onCompleted: {
-                if (tools.expanded) {
-                        tools.push(tools.items);
-                }
-        }
-
         function push(items) {
                 return Layout.push(items);
         }