diff options
Diffstat (limited to 'src/mainwindow')
-rw-r--r-- | src/mainwindow/mainwindow.cpp | 8 |
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(); |