summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.lima@openbossa.org>2012-06-15 16:59:26 -0300
committerHugo Parente Lima <hugo.lima@openbossa.org>2012-06-15 17:16:00 -0300
commit4f365a2007ab52b244a951a5570fde7a3d265cfa (patch)
tree1ba5dd56e16022fa2b0e5d411c480f8def69de26
parentf71bd1ebcc502ed23a25f1994d02e6257f24ec38 (diff)
Open "new url" dialog when the browser is started and there's no items on the bookmark.
Reviewed-by: Marcelo Lira
-rw-r--r--src/mobile/qml/Main.qml6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mobile/qml/Main.qml b/src/mobile/qml/Main.qml
index 2a156b9..6fc152d 100644
--- a/src/mobile/qml/Main.qml
+++ b/src/mobile/qml/Main.qml
@@ -161,7 +161,11 @@ Rectangle {
// 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"
+ Component.onCompleted: {
+ state = "favorites";
+ if (!BookmarkModel.count)
+ urlInputPanel.showForNewTab();
+ }
states: [
State {