mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-18 13:12:50 +00:00
Prevent context menu appearing when right-clicking shortcut setting
This commit is contained in:
parent
646ff72cdc
commit
c2f427f48d
@ -40,6 +40,10 @@ namespace CSMPrefs
|
||||
|
||||
widget->setCheckable(true);
|
||||
widget->installEventFilter(this);
|
||||
|
||||
// right clicking on button sets shortcut to RMB, so context menu should not appear
|
||||
widget->setContextMenuPolicy(Qt::ContextMenuPolicy::PreventContextMenu);
|
||||
|
||||
mButton = widget;
|
||||
|
||||
connect(widget, SIGNAL(toggled(bool)), this, SLOT(buttonToggled(bool)));
|
||||
|
Loading…
x
Reference in New Issue
Block a user