aboutsummaryrefslogtreecommitdiff
path: root/src/mainwindow
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2018-06-21 15:32:05 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2018-06-21 15:32:05 +0200
commitd9d213c80353b843c18af6e49db61fa77039f056 (patch)
tree21eaa71e62e88815a5c1caa9e0b0f273a6f63b1d /src/mainwindow
parentAddressBar: code cleanup (diff)
downloadsmolbote-d9d213c80353b843c18af6e49db61fa77039f056.tar.xz
Add Browser::about
Diffstat (limited to 'src/mainwindow')
-rw-r--r--src/mainwindow/mainwindow.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/mainwindow/mainwindow.cpp b/src/mainwindow/mainwindow.cpp
index 48c9e9e..2b6eb07 100644
--- a/src/mainwindow/mainwindow.cpp
+++ b/src/mainwindow/mainwindow.cpp
@@ -12,6 +12,7 @@
#include "widgets/navigationbar.h"
#include "widgets/searchform.h"
#include "subwindow.h"
+#include "browser.h"
#include <QApplication>
#include <QCloseEvent>
#include "widgets/dockwidget.h"
@@ -24,7 +25,6 @@
#include <QStatusBar>
#include <QToolBar>
#include <QUrl>
-#include <about/aboutdialog.h>
#include <configuration/configuration.h>
#include <QJsonObject>
#include <QJsonArray>
@@ -157,11 +157,7 @@ void MainWindow::createMenuBar()
smolboteMenu->addSeparator();
- smolboteMenu->addAction(tr("About"), this, [this]() {
- auto *dlg = new AboutDialog(this);
- dlg->exec();
- },
- QKeySequence(m_config->value<std::string>("mainwindow.shortcuts.about").value().c_str()));
+ smolboteMenu->addAction(tr("About"), qobject_cast<Browser*>(qApp), &Browser::about, QKeySequence(m_config->value<std::string>("mainwindow.shortcuts.about").value().c_str()));
smolboteMenu->addAction(tr("About Qt"), qApp, &QApplication::aboutQt);
smolboteMenu->addSeparator();