1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-19 22:23:51 +00:00

Prevent context menu appearing when right-clicking shortcut setting

This commit is contained in:
PlutonicOverkill 2017-05-10 20:43:52 +12:00
parent 646ff72cdc
commit c2f427f48d

View file

@ -40,6 +40,10 @@ namespace CSMPrefs
widget->setCheckable(true); widget->setCheckable(true);
widget->installEventFilter(this); widget->installEventFilter(this);
// right clicking on button sets shortcut to RMB, so context menu should not appear
widget->setContextMenuPolicy(Qt::ContextMenuPolicy::PreventContextMenu);
mButton = widget; mButton = widget;
connect(widget, SIGNAL(toggled(bool)), this, SLOT(buttonToggled(bool))); connect(widget, SIGNAL(toggled(bool)), this, SLOT(buttonToggled(bool)));