Fix bug that causes random crashes.

This commit is contained in:
Black Hat
2018-03-02 19:58:55 +08:00
parent d4c2a1ed50
commit 4347755a71
5 changed files with 29 additions and 21 deletions

View File

@@ -22,12 +22,17 @@ ApplicationWindow {
connection: m_connection
}
// Settings {
// id: settings
RoomListModel {
id: roomListModel
connection: m_connection
}
// property var userID
// property var token
// }
Settings {
id: settings
property alias userID: matrixController.userID
property alias token: matrixController.token
}
FontLoader { id: materialFont; source: "qrc:/asset/font/material.ttf" }
@@ -50,7 +55,7 @@ ApplicationWindow {
page: Room {
id: roomPage
roomListModel: matrixController.roomListModel//BUG: It will cause random crash as roomListModel may not be initialized.
roomListModel: roomListModel
}
}