fix popup destruction
This commit is contained in:
parent
62e87c1f53
commit
35f1361794
@ -55,7 +55,7 @@ Page {
|
|||||||
Layout.margins: app.margins
|
Layout.margins: app.margins
|
||||||
text: qsTr("Log out")
|
text: qsTr("Log out")
|
||||||
onClicked: {
|
onClicked: {
|
||||||
logoutDialog.open()
|
logoutDialogComponent.createObject(root).open()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -106,6 +106,8 @@ Page {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Component {
|
||||||
|
id : logoutDialogComponent
|
||||||
MeaDialog {
|
MeaDialog {
|
||||||
id: logoutDialog
|
id: logoutDialog
|
||||||
title: qsTr("Goodbye")
|
title: qsTr("Goodbye")
|
||||||
@ -133,6 +135,8 @@ Page {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
Flickable {
|
Flickable {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
@ -210,7 +214,7 @@ Page {
|
|||||||
errorLabel.text = qsTr("Failed to connect to the login server. Please mase sure your network connection is working.")
|
errorLabel.text = qsTr("Failed to connect to the login server. Please mase sure your network connection is working.")
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
errorLabel.text = qsTr("An unexpected error happened. Please report this isse. Error code:", error)
|
errorLabel.text = qsTr("An unexpected error happened. Please report this isse. Error code:").arg(error)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
errorLabel.visible = (error !== AWSClient.LoginErrorNoError)
|
errorLabel.visible = (error !== AWSClient.LoginErrorNoError)
|
||||||
|
|||||||
@ -14,6 +14,8 @@ Dialog {
|
|||||||
|
|
||||||
standardButtons: Dialog.Ok
|
standardButtons: Dialog.Ok
|
||||||
|
|
||||||
|
onClosed: root.destroy()
|
||||||
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
parent: app.overlay
|
parent: app.overlay
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
|||||||
Reference in New Issue
Block a user