diff options
author | Javier S. Pedro <maemo@javispedro.com> | 2013-04-02 14:13:49 +0200 |
---|---|---|
committer | Javier S. Pedro <maemo@javispedro.com> | 2013-04-02 14:13:49 +0200 |
commit | 226690b61e546294ae102c4a4b48b56555609c57 (patch) | |
tree | e52865a90a3f81613e546ee9fe748720a21b909a /qml/tapasboard | |
parent | 07abe301396f9b0fbfca67d4b4f6df6b9fdf6e82 (diff) | |
download | tapasboard-226690b61e546294ae102c4a4b48b56555609c57.tar.gz tapasboard-226690b61e546294ae102c4a4b48b56555609c57.zip |
add better support for subforums
Diffstat (limited to 'qml/tapasboard')
-rw-r--r-- | qml/tapasboard/BoardPage.qml | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/qml/tapasboard/BoardPage.qml b/qml/tapasboard/BoardPage.qml index 57d362d..4aeba79 100644 --- a/qml/tapasboard/BoardPage.qml +++ b/qml/tapasboard/BoardPage.qml @@ -69,10 +69,17 @@ Page { } onClicked: { - pageStack.push(Qt.resolvedUrl("ForumPage.qml"), { - boardUrl: boardPage.boardUrl, - forumId: model.forumId - }); + if (model.subOnly) { + pageStack.push(Qt.resolvedUrl("BoardPage.qml"), { + boardUrl: boardPage.boardUrl, + rootForumId: model.forumId + }); + } else { + pageStack.push(Qt.resolvedUrl("ForumPage.qml"), { + boardUrl: boardPage.boardUrl, + forumId: model.forumId + }); + } } } } |