Fix undefined behavior when all users are logged out.

This commit is contained in:
Black Hat
2019-04-29 15:03:11 +08:00
parent 2a86fbd8b6
commit d8c98374e4
3 changed files with 5 additions and 7 deletions

View File

@@ -371,7 +371,7 @@ ApplicationWindow {
clip: true
controller: spectralController
connection: spectralController.connection
onLeaveRoom: roomForm.saveReadMarker(room)
}
@@ -420,7 +420,7 @@ ApplicationWindow {
Component.onCompleted: {
spectralController.initiated.connect(function() {
if (spectralController.accountCount == 0) loginDialog.open()
if (spectralController.accountCount == 0) loginDialog.createObject(window).open()
})
}
}