aboutsummaryrefslogtreecommitdiff
path: root/src/mainwindow/mainwindow.cpp
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2018-04-17 17:23:53 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2018-04-17 17:23:53 +0200
commitc03fc45aca526f94e07b99672fb09825af86221c (patch)
tree302cd9f6cc8d7a8026aedfda326debf1ea48b6a4 /src/mainwindow/mainwindow.cpp
parentRemove LoadingBar (diff)
downloadsmolbote-c03fc45aca526f94e07b99672fb09825af86221c.tar.xz
Hovering over links shows them in the status bar again
Diffstat (limited to 'src/mainwindow/mainwindow.cpp')
-rw-r--r--src/mainwindow/mainwindow.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mainwindow/mainwindow.cpp b/src/mainwindow/mainwindow.cpp
index 9b1db30..18e1b63 100644
--- a/src/mainwindow/mainwindow.cpp
+++ b/src/mainwindow/mainwindow.cpp
@@ -67,6 +67,7 @@ MainWindow::MainWindow(std::shared_ptr<Configuration> &config, QWidget *parent)
disconnect(addressBarConnection);
disconnect(navigationBarConnection);
disconnect(searchBoxConnection);
+ disconnect(statusBarConnection);
auto *w = qobject_cast<Window *>(window);
if(w == nullptr) {
@@ -87,6 +88,7 @@ MainWindow::MainWindow(std::shared_ptr<Configuration> &config, QWidget *parent)
navigationBarConnection = connect(w, &Window::currentViewChanged, navigationToolBar, &NavigationBar::connectWebView);
searchBox->setView(w->currentView());
searchBoxConnection = connect(w, &Window::currentViewChanged, searchBox, &SearchForm::setView);
+ statusBarConnection = connect(w, &Window::showStatusMessage, statusBar(), &QStatusBar::showMessage);
}
});
@@ -107,6 +109,7 @@ MainWindow::~MainWindow()
disconnect(addressBarConnection);
disconnect(navigationBarConnection);
disconnect(searchBoxConnection);
+ disconnect(statusBarConnection);
}
void MainWindow::createMenuBar()