aboutsummaryrefslogtreecommitdiff
path: root/src/applicationmenu.cpp
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2020-11-20 16:25:20 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2020-11-20 20:52:47 +0200
commit4633d4648a048c16744117ac6d48098e47f6f214 (patch)
tree2e974c656ab8f26924e367a53d176d69f443e46d /src/applicationmenu.cpp
parentDrop args.hxx dependency (diff)
downloadsmolbote-4633d4648a048c16744117ac6d48098e47f6f214.tar.xz
Fix meson warnings
Update about dialog
Diffstat (limited to 'src/applicationmenu.cpp')
-rw-r--r--src/applicationmenu.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/applicationmenu.cpp b/src/applicationmenu.cpp
index dc888e7..112e790 100644
--- a/src/applicationmenu.cpp
+++ b/src/applicationmenu.cpp
@@ -7,6 +7,7 @@
*/
#include "applicationmenu.h"
+#include "aboutdialog.h"
#include "browser.h"
#include "configuration.h"
#include "session/savesessiondialog.h"
@@ -39,7 +40,10 @@ ApplicationMenu::ApplicationMenu(Browser *app, QWidget *parent)
bottom_pluginSeparator = addSeparator();
- auto *actionAbout = addAction(tr("About"), app, &Browser::about);
+ auto *actionAbout = addAction(tr("About"), app, []() {
+ auto *dlg = new AboutDialog(qApp->activeWindow());
+ dlg->show();
+ });
conf.shortcut<QAction>(*actionAbout, "shortcuts.window.about");
auto *action_aboutPlugins = addAction(tr("About Plugins"), app, &Browser::aboutPlugins);