diff --git a/src/browser.hxx b/src/browser.hxx index 65e0d6f..28ad584 100644 --- a/src/browser.hxx +++ b/src/browser.hxx @@ -300,6 +300,10 @@ class Browser: public QMainWindow, protected Ui::Browser { void load(QString page) { _settings.replaceSearchEngine(page); if (QUrl(page).scheme()=="") page = "http://"+page; + if (qobject_cast(_url)) + qobject_cast(_url)->lineEdit()->setText(page); + else + qobject_cast(_url)->setText(page); load(QUrl(page)); } @@ -922,8 +926,10 @@ class Browser: public QMainWindow, protected Ui::Browser { urls = _settings()->value("Window/Urls").toStringList(); } if (qobject_cast(_url)) { + QString ci(qobject_cast(_url)->currentText()); qobject_cast(_url)->clear(); qobject_cast(_url)->addItems(urls); + qobject_cast(_url)->lineEdit()->setText(ci); } if (_bookmarks) { _bookmarks->clear();