summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleix Pol <[email protected]>2017-01-10 11:58:28 +0100
committerAleix Pol <[email protected]>2017-01-10 11:58:28 +0100
commit64f4ce461802ff116706d40711c60b927dcccec3 (patch)
treeebbf5a7f8e4565bd1538e08ce9dd3dfb72842c00
parent7d2db60608b8a5f388e44846183e4005322cf0bb (diff)
Don't push "" as a page
This happens when calling clearStack()
-rw-r--r--discover/qml/DiscoverWindow.qml3
1 files changed, 2 insertions, 1 deletions
diff --git a/discover/qml/DiscoverWindow.qml b/discover/qml/DiscoverWindow.qml
index ada940c..4a0235e 100644
--- a/discover/qml/DiscoverWindow.qml
+++ b/discover/qml/DiscoverWindow.qml
@@ -157,7 +157,8 @@ Kirigami.ApplicationWindow
onCurrentTopLevelChanged: {
window.pageStack.clear()
- window.pageStack.push(currentTopLevel, {}, window.status!=Component.Ready)
+ if (currentTopLevel)
+ window.pageStack.push(currentTopLevel, {}, window.status!=Component.Ready)
}
Menu {