diff options
Diffstat (limited to 'src/mainwindow/mainwindow.cpp')
-rw-r--r-- | src/mainwindow/mainwindow.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mainwindow/mainwindow.cpp b/src/mainwindow/mainwindow.cpp index a45c89e..d5efe5c 100644 --- a/src/mainwindow/mainwindow.cpp +++ b/src/mainwindow/mainwindow.cpp @@ -15,7 +15,7 @@ #include <QMessageBox> #include <bookmarks/bookmarkswidget.h> #include <downloads/downloadswidget.h> -#include <navigation/urllineedit.h> +#include <src/addressbar/urllineedit.h> #include <settings/settingsdialog.h> MainWindow::MainWindow(std::shared_ptr<Configuration> config, QWidget *parent) @@ -270,9 +270,7 @@ void MainWindow::handleTabChanged(WebView *view) // connect signals m_navigationBar->connectWebView(view); - connect(view, &WebView::urlChanged, m_addressBar, &UrlLineEdit::setUrl); - m_addressBar->setUrl(view->url()); - m_addressBar->pageAction()->setMenu(view->pageMenu()); + m_addressBar->connectWebView(view); connect(view, &WebView::titleChanged, this, &MainWindow::handleTitleUpdated); |