From 30af69bfe996b97ac77e15981b6f2112aa2df3d0 Mon Sep 17 00:00:00 2001 From: Cacodemon345 Date: Thu, 10 Feb 2022 00:50:37 +0600 Subject: [PATCH] qt: Fix toolbar hiding menu appearing on KDE when right-clicked on an empty space of the main menu bar --- src/qt/qt_mainwindow.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/qt/qt_mainwindow.cpp b/src/qt/qt_mainwindow.cpp index 4ed4ea1ab..ece9a6982 100644 --- a/src/qt/qt_mainwindow.cpp +++ b/src/qt/qt_mainwindow.cpp @@ -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) {