From 4c815ad9504a3b3414b9e6836da7d450d0995171 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20W=C3=A4ckerlin?= Date: Tue, 14 Feb 2012 12:03:47 +0000 Subject: [PATCH] set cursor position to 0 also in non-kiosk-mode; refs #106 --- src/browser.hxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/browser.hxx b/src/browser.hxx index d22cd67..b6a28fd 100644 --- a/src/browser.hxx +++ b/src/browser.hxx @@ -628,6 +628,7 @@ class Browser: public QMainWindow, protected Ui::Browser { qobject_cast(_url)->setEditText (qobject_cast(_tabs->currentWidget()) ->url().toString()); + qobject_cast(_url)->lineEdit()->setCursorPosition(0); } else { qobject_cast(_url)->setText (qobject_cast(_tabs->currentWidget()) @@ -887,6 +888,7 @@ class Browser: public QMainWindow, protected Ui::Browser { LOG<<"signal on current tab"; if (qobject_cast(_url)) { qobject_cast(_url)->setEditText(url.toString()); + qobject_cast(_url)->lineEdit()->setCursorPosition(0); } else { qobject_cast(_url)->setText(url.toString()); qobject_cast(_url)->setCursorPosition(0);