diff options
author | Hugo Parente Lima <hugo.lima@openbossa.org> | 2012-06-12 17:12:01 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.lima@openbossa.org> | 2012-06-12 17:27:41 -0300 |
commit | 1b578f2e17a56000791f791518041e4e50fe1447 (patch) | |
tree | a924d5298e05f54a95cb24459667685b148d0530 | |
parent | 73b724b2dd381574227e5d6c075165990681723c (diff) |
Workaround to Qml bug on n9 causing snowshoe to start on tabs panel.
The bug is caused by Qml setting panelToggle.topsites.visible to false
then to true at start up causing a cascade misbehaviour, the workaround
is to set the state of the root element on Component.onCompleted.
Reviewed-by: Marcelo Lira
-rw-r--r-- | src/mobile/qml/Main.qml | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mobile/qml/Main.qml b/src/mobile/qml/Main.qml index 315ebe5..0e729cf 100644 --- a/src/mobile/qml/Main.qml +++ b/src/mobile/qml/Main.qml @@ -158,7 +158,12 @@ Rectangle { } property string previousState: "" - state: "favorites" +// BUG: Qml behaves wrong on n9,it sets panelToggle.topsites.visible to false +// then to true on start up causing a cascade misbehaviour, the workaround +// is to set the state of the root element on Component.onCompleted. +// state: "favorites" + Component.onCompleted: state = "favorites" + states: [ State { name: "favorites" |