From a6a80f4bf83eaa1894b83755ec8785af5ed4559f Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Mon, 23 Mar 2020 22:50:05 +0200 Subject: Fix various compiler warnings --- src/mainwindow/mainwindow.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/mainwindow/mainwindow.cpp') diff --git a/src/mainwindow/mainwindow.cpp b/src/mainwindow/mainwindow.cpp index e03ec46..36f2759 100644 --- a/src/mainwindow/mainwindow.cpp +++ b/src/mainwindow/mainwindow.cpp @@ -56,7 +56,7 @@ MainWindow::MainWindow(QWidget *parent) { QAction *subwindowMenuAction = new QAction(this); QMainWindow::addAction(subwindowMenuAction); - setShortcut(subwindowMenuAction, "shortcuts.subwindow.menu"); + config.shortcut(*subwindowMenuAction, "shortcuts.subwindow.menu"); connect(subwindowMenuAction, &QAction::triggered, this, [this]() { QMdiSubWindow *window = mdiArea->currentSubWindow(); if(window != nullptr) { @@ -131,8 +131,8 @@ MainWindow::MainWindow(QWidget *parent) // search box auto *searchAction = new QAction(this); - setShortcut(searchAction, "shortcuts.window.search"); - connect(searchAction, &QAction::triggered, this, [=]() { + config.shortcut(*searchAction, "shortcuts.window.search"); + connect(searchAction, &QAction::triggered, this, [this]() { /* QTBUG-18665 * When focusing out of the search box and hiding it, the first * (or earlier?) subwindow gets activated for some reason. -- cgit v1.2.1