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
358 if (stack) {358 if (stack) {
359 QMetaObject::invokeMethod(stack, "pushSource", Q_ARG(const QVariant&, path));359 QMetaObject::invokeMethod(stack, "pushSource", Q_ARG(const QVariant&, path));
360 } else {360 } else {
361 qCDebug(scriptengine) << "tablet cannot push QML because _qmlTabletRoot doesn't have child stack";361 loadQMLSource(path);
362 }362 }
363 } else if (_desktopWindow) {363 } else if (_desktopWindow) {
364 auto stack = _desktopWindow->asQuickItem()->findChild<QQuickItem*>("stack");364 auto stack = _desktopWindow->asQuickItem()->findChild<QQuickItem*>("stack");