Showing the changes to interface/src/scripting/MenuScriptingInterface.cpp (1 of 96 files). Show all
Unified · Split
| @@ -152,9 +152,13 @@ void MenuScriptingInterface::closeInfoView(const QString& path) { · 151 unmodified lines | ||
| 152 | 152 | } |
| 153 | 153 | |
| 154 | 154 | bool MenuScriptingInterface::isInfoViewVisible(const QString& path) { |
| 155 | + if (QThread::currentThread() == qApp->thread()) { | |
| 156 | + return Menu::getInstance()->isInfoViewVisible(path); | |
| 157 | + } | |
| 158 | + | |
| 155 | 159 | bool result; |
| 156 | 160 | QMetaObject::invokeMethod(Menu::getInstance(), "isInfoViewVisible", Qt::BlockingQueuedConnection, |
| 157 | − Q_RETURN_ARG(bool, result), Q_ARG(const QString&, path)); | |
| 161 | + Q_RETURN_ARG(bool, result), Q_ARG(const QString&, path)); | |
| 158 | 162 | return result; |
| 159 | 163 | } |
| 160 | 164 | |