[harmattan] properly push both pages on the pagestack when starting with all feeds

This commit is contained in:
Hauke Schade 2014-11-16 18:33:10 +01:00
parent b41b3bff88
commit 89d77dc0d5

View file

@ -224,6 +224,7 @@ Page {
categories.update()
//Now show the categories View
var pages = [Qt.resolvedUrl("Categories.qml")]
if (settings.useAllFeedsOnStartup) {
var ttrss = rootWindow.getTTRSS()
var params = {
@ -233,10 +234,9 @@ Page {
unreadcount: 0
}
}
rootWindow.openFile("Feeds.qml", params)
} else {
rootWindow.openFile("Categories.qml")
pages.push({page: Qt.resolvedUrl("Feeds.qml"), properties: params })
}
pageStack.push(pages)
}
//Dialog for login errors