1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-03-14 01:19:59 +00:00

Prevent context menu appearing for modifier settings

This commit is contained in:
PlutonicOverkill 2017-05-10 21:24:12 +12:00
parent c2f427f48d
commit 16f8341de3

View File

@ -32,6 +32,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)));