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);