History

report success on tablet->pushOntoStack

Zach Pomerantz committed 9 years ago

Commit 297993b1 parent cfbbf312 files · +6 −2Browse files

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

Unified · Split

libraries/script-engine/src/TabletScriptingInterface.cpp+3−1
@@ -439,7 +439,7 @@ void TabletProxy::loadQMLSource(const QVariant& path) { · 438 unmodified lines
439439 }
440440 }
441441
442−void TabletProxy::pushOntoStack(const QVariant& path) {
442+bool TabletProxy::pushOntoStack(const QVariant& path) {
443443 QObject* root = nullptr;
444444 if (!_toolbarMode && _qmlTabletRoot) {
445445 root = _qmlTabletRoot;
@@ -457,6 +457,8 @@ void TabletProxy::pushOntoStack(const QVariant& path) { · 11 unmodified lines
457457 } else {
458458 qCDebug(scriptengine) << "tablet cannot push QML because _qmlTabletRoot or _desktopWindow is null";
459459 }
460+
461+ return root;
460462 }
461463
462464 void TabletProxy::popFromStack() {