diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2020-11-20 16:25:20 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2020-11-20 20:52:47 +0200 |
commit | 4633d4648a048c16744117ac6d48098e47f6f214 (patch) | |
tree | 2e974c656ab8f26924e367a53d176d69f443e46d /src/applicationmenu.cpp | |
parent | Drop args.hxx dependency (diff) | |
download | smolbote-4633d4648a048c16744117ac6d48098e47f6f214.tar.xz |
Fix meson warnings
Update about dialog
Diffstat (limited to 'src/applicationmenu.cpp')
-rw-r--r-- | src/applicationmenu.cpp | 6 |
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); |