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:
Cacodemon345
2022-02-10 00:50:37 +06:00
parent 8dc6a086f3
commit 30af69bfe9

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) {