Index: sources/gui/qml/components/StackItem.qml =================================================================== diff -u -r2dd767833cf0cf706c457951c2d78e7e20aff768 -r2ef03b2ce51b4dc507f66e9671953a8e0824bde9 --- sources/gui/qml/components/StackItem.qml (.../StackItem.qml) (revision 2dd767833cf0cf706c457951c2d78e7e20aff768) +++ sources/gui/qml/components/StackItem.qml (.../StackItem.qml) (revision 2ef03b2ce51b4dc507f66e9671953a8e0824bde9) @@ -1,16 +1,16 @@ /*! - * - * Copyright (c) 2019-2020 Diality Inc. - All Rights Reserved. + * + * Copyright (c) 2019-2024 Diality Inc. - All Rights Reserved. * \copyright * THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, IN PART OR IN * WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. - * - * \file StackItem.qml - * \author (last) Behrouz NematiPour - * \date (last) 22-Mar-2020 - * \author (original) Behrouz NematiPour - * \date (original) 21-Oct-2019 - * + * + * \file StackItem.qml + * \author (last) Behrouz NematiPour + * \date (last) 29-Jun-2022 + * \author (original) Behrouz NematiPour + * \date (original) 21-Oct-2019 + * */ // Qt @@ -37,7 +37,7 @@ */ function info(vInfo) { // DEBUG: - return; + if ( true ) return console.debug('-----') if ( vInfo !== undefined ) console.debug(vInfo) for( var i = 0; i < _stackView.depth; i++ ) { @@ -82,8 +82,9 @@ * \brief pushes the screen vScreen on the top of the stack */ function push (vScreen) { + if ( vScreen === undefined || vScreen === null ) return if ( _stackView.currentItem === vScreen) { - console.debug("same current screen didn't push" , vScreen.name) + console.debug("same current screen didn't push" , vScreen) } else { _stackView.push(vScreen) @@ -112,8 +113,7 @@ */ function reset() { stackView.clear() - stackView.push(stackView.initialItem) - info() + push(stackView.initialItem) } StackView { id : _stackView