Explicitly set NoRole on the setup cheats option so Qt on mac will stop stealing it

This commit is contained in:
Nadia Holmquist Pedersen 2021-06-05 14:47:51 +02:00
parent 297563cd97
commit af36d10023

View File

@ -1313,6 +1313,7 @@ MainWindow::MainWindow(QWidget* parent) : QMainWindow(parent)
connect(actEnableCheats, &QAction::triggered, this, &MainWindow::onEnableCheats);
actSetupCheats = menu->addAction("Setup cheat codes");
actSetupCheats->setMenuRole(QAction::NoRole);
connect(actSetupCheats, &QAction::triggered, this, &MainWindow::onSetupCheats);
}
{