History

Use loadQMlSource if no stack is aviable

Dante Ruiz committed 9 years ago

Commit af97c721 parent 93341553 files · +6 −3Browse files

Showing the changes to libraries/script-engine/src/TabletScriptingInterface.cpp (1 of 3 files). Show all

Unified · Split

libraries/script-engine/src/TabletScriptingInterface.cpp+1−1
@@ -358,7 +358,7 @@ void TabletProxy::pushOntoStack(const QVariant& path) { · 357 unmodified lines
358358 if (stack) {
359359 QMetaObject::invokeMethod(stack, "pushSource", Q_ARG(const QVariant&, path));
360360 } else {
361− qCDebug(scriptengine) << "tablet cannot push QML because _qmlTabletRoot doesn't have child stack";
361+ loadQMLSource(path);
362362 }
363363 } else if (_desktopWindow) {
364364 auto stack = _desktopWindow->asQuickItem()->findChild<QQuickItem*>("stack");