[PATCH] Open "new url" dialog when the browser is started and there's no items on the bookmark.

3 views
Skip to first unread message

Hugo Parente Lima

unread,
Jun 15, 2012, 4:00:13 PM6/15/12
to snowsh...@googlegroups.com
Reviewed-by: ?
---
src/mobile/qml/Main.qml | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)

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 {
--
1.7.10.3

Marcelo Lira

unread,
Jun 15, 2012, 4:10:48 PM6/15/12
to snowsh...@googlegroups.com
r=me
--
Marcelo Lira dos Santos
INdT - Instituto Nokia de Tecnologia

Rafael Brandao

unread,
Jun 15, 2012, 4:19:50 PM6/15/12
to snowsh...@googlegroups.com
You could have removed the preceding comment, it was probably related to the line you've removed.
--
Rafael Brandao @ INdT

Hugo Parente Lima

unread,
Jun 15, 2012, 4:23:01 PM6/15/12
to snowsh...@googlegroups.com, Rafael Brandao
On Friday, June 15, 2012 05:19:50 PM Rafael Brandao wrote:
> You could have removed the preceding comment, it was probably related to
> the line you've removed.

The line wasn't removed, it was moved.
signature.asc

Rafael Brandao

unread,
Jun 15, 2012, 4:48:24 PM6/15/12
to Hugo Parente Lima, snowsh...@googlegroups.com
You're right. I'm sleepy :-(
Reply all
Reply to author
Forward
0 new messages