Rename Controller.connection to activeConnection
This commit is contained in:
@@ -39,7 +39,7 @@ Dialog {
|
||||
|
||||
standardButtons: Dialog.Ok | Dialog.Cancel
|
||||
|
||||
onAccepted: Controller.createRoom(Controller.connection, roomNameField.text, roomTopicField.text)
|
||||
onAccepted: Controller.createRoom(Controller.activeConnection, roomNameField.text, roomTopicField.text)
|
||||
|
||||
onClosed: destroy()
|
||||
}
|
||||
|
||||
@@ -168,7 +168,7 @@ Dialog {
|
||||
anchors.fill: parent
|
||||
|
||||
onClicked: {
|
||||
roomListForm.enteredRoom = Controller.connection.room(room.predecessorId)
|
||||
roomListForm.enteredRoom = Controller.activeConnection.room(room.predecessorId)
|
||||
root.close()
|
||||
}
|
||||
}
|
||||
@@ -212,7 +212,7 @@ Dialog {
|
||||
anchors.fill: parent
|
||||
|
||||
onClicked: {
|
||||
roomListForm.enteredRoom = Controller.connection.room(room.successorId)
|
||||
roomListForm.enteredRoom = Controller.activeConnection.room(room.successorId)
|
||||
root.close()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user