set cursor position to 0 also in non-kiosk-mode; refs #106

master
Marc Wäckerlin 12 years ago
parent dd70b3d46f
commit 4c815ad950
  1. 2
      src/browser.hxx

@ -628,6 +628,7 @@ class Browser: public QMainWindow, protected Ui::Browser {
qobject_cast<QComboBox*>(_url)->setEditText
(qobject_cast<QWebView*>(_tabs->currentWidget())
->url().toString());
qobject_cast<QComboBox*>(_url)->lineEdit()->setCursorPosition(0);
} else {
qobject_cast<QLineEdit*>(_url)->setText
(qobject_cast<QWebView*>(_tabs->currentWidget())
@ -887,6 +888,7 @@ class Browser: public QMainWindow, protected Ui::Browser {
LOG<<"signal on current tab";
if (qobject_cast<QComboBox*>(_url)) {
qobject_cast<QComboBox*>(_url)->setEditText(url.toString());
qobject_cast<QComboBox*>(_url)->lineEdit()->setCursorPosition(0);
} else {
qobject_cast<QLineEdit*>(_url)->setText(url.toString());
qobject_cast<QLineEdit*>(_url)->setCursorPosition(0);

Loading…
Cancel
Save