Merge pull request #2085 from Cacodemon345/newqt

qt: Fix toolbar hiding menu appearing on KDE when right-clicked on an empty space of the main menu bar
This commit is contained in:
Miran Grča
2022-02-09 20:09:53 +01:00
committed by GitHub

View File

@@ -419,6 +419,7 @@ MainWindow::MainWindow(QWidget *parent) :
#ifdef _WIN32
ui->toolBar->setIconSize(QSize(16 * screen()->devicePixelRatio(), 16 * screen()->devicePixelRatio()));
#endif
setContextMenuPolicy(Qt::PreventContextMenu);
}
void MainWindow::closeEvent(QCloseEvent *event) {