Showing the changes to interface/src/scripting/WebWindowClass.cpp (1 of 1 file). Show all
Unified · Split
| @@ -196,5 +196,9 @@ QScriptValue WebWindowClass::constructor(QScriptContext* context, QScriptEngine* · 195 unmodified lines | ||
| 196 | 196 | } |
| 197 | 197 | |
| 198 | 198 | void WebWindowClass::setTitle(const QString& title) { |
| 199 | + if (QThread::currentThread() != thread()) { | |
| 200 | + QMetaObject::invokeMethod(this, "setTitle", Qt::AutoConnection, Q_ARG(QString, title)); | |
| 201 | + return; | |
| 202 | + } | |
| 199 | 203 | _windowWidget->setWindowTitle(title); |
| 200 | 204 | } |