diff --git a/src/StatusQ/Popups/StatusStackModal.qml b/src/StatusQ/Popups/StatusStackModal.qml index 45137412..63e11851 100644 --- a/src/StatusQ/Popups/StatusStackModal.qml +++ b/src/StatusQ/Popups/StatusStackModal.qml @@ -60,10 +60,15 @@ StatusModal { rotation: 180 visible: replaceItem || stackLayout.currentIndex > 0 onClicked: { - if (replaceItem) - replaceItem = null; - else - stackLayout.currentIndex--; + if (replaceItem) { + replaceItem = null; + } else { + let prevAction = stackLayout.currentItem.prevAction + stackLayout.currentIndex--; + if (typeof(prevAction) == "function") { + prevAction() + } + } } }