diff --git a/qml/App.qml b/qml/App.qml index ede998f..d70fde9 100644 --- a/qml/App.qml +++ b/qml/App.qml @@ -23,11 +23,13 @@ Item { __currentIndex = lastPages.length-1; } - function showPage(name) + function showPage(name, index = -1) { lastPages.push(name) pageLoader.setSource(name) - __currentIndex = lastPages.length-1; + if(index === -1) + __currentIndex = lastPages.length-1 + else __currentIndex = index } TitleBar {