summaryrefslogtreecommitdiffstats
path: root/components
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2018-01-11 16:02:32 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2018-01-11 16:02:32 +0100
commitad83e984c9124e8636b902566852ad49044e6c96 (patch)
treee194d248ab4388106586a7ccb7f531355e04a155 /components
parent12f7ce92376ffcafdadc1078d81cd1a8d8fb0661 (diff)
downloadkube-ad83e984c9124e8636b902566852ad49044e6c96.tar.gz
kube-ad83e984c9124e8636b902566852ad49044e6c96.zip
Avoid warning
Diffstat (limited to 'components')
-rw-r--r--components/kube/qml/ViewManager.qml4
1 files changed, 4 insertions, 0 deletions
diff --git a/components/kube/qml/ViewManager.qml b/components/kube/qml/ViewManager.qml
index 6874107a..35398d7a 100644
--- a/components/kube/qml/ViewManager.qml
+++ b/components/kube/qml/ViewManager.qml
@@ -58,6 +58,10 @@ StackView {
58 if (root.depth > 0) { 58 if (root.depth > 0) {
59 root.pop(StackView.Immediate) 59 root.pop(StackView.Immediate)
60 } 60 }
61 //Avoid trying to push the same item again, if its on top after pop
62 if (currentItem && currentItem.objectName == name) {
63 return
64 }
61 var view = getView(name, replace) 65 var view = getView(name, replace)
62 var item = push(view, properties, StackView.Immediate) 66 var item = push(view, properties, StackView.Immediate)
63 item.parent = root 67 item.parent = root