mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 08:04:01 +02:00
test fix for Austin's repro
This commit is contained in:
parent
356dbbec72
commit
b798761ec5
1 changed files with 6 additions and 0 deletions
|
@ -704,6 +704,12 @@ void Menu::removeAction(QMenu* menu, const QString& actionName) {
|
|||
}
|
||||
|
||||
void Menu::setIsOptionChecked(const QString& menuOption, bool isChecked) {
|
||||
if (thread() != QThread::currentThread()) {
|
||||
QMetaObject::invokeMethod(Menu::getInstance(), "setIsOptionChecked", Qt::BlockingQueuedConnection,
|
||||
Q_ARG(const QString&, menuOption),
|
||||
Q_ARG(bool, isChecked));
|
||||
return;
|
||||
}
|
||||
QAction* menu = _actionHash.value(menuOption);
|
||||
if (menu) {
|
||||
menu->setChecked(isChecked);
|
||||
|
|
Loading…
Reference in a new issue