mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 04:08:55 +00:00
Disable right-click menu on main window
Before, right-clicking on the toolbar would allow toggling all dock widgets, including the debugger ones even when they are disabled. (See https://doc.qt.io/qt-5/qmainwindow.html#createPopupMenu for this behavior, and https://bugs.dolphin-emu.org/issues/13306 for an example of where it caused issues.)
This commit is contained in:
parent
0f33e71912
commit
6617f8ddcf
2 changed files with 9 additions and 0 deletions
|
@ -13,6 +13,7 @@
|
|||
|
||||
#include "Core/Boot/Boot.h"
|
||||
|
||||
class QMenu;
|
||||
class QStackedWidget;
|
||||
class QString;
|
||||
|
||||
|
@ -80,6 +81,7 @@ public:
|
|||
WindowSystemInfo GetWindowSystemInfo() const;
|
||||
|
||||
bool eventFilter(QObject* object, QEvent* event) override;
|
||||
QMenu* createPopupMenu() override;
|
||||
|
||||
signals:
|
||||
void ReadOnlyModeChanged(bool read_only);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue