replace message dialog with custom dialog

This commit is contained in:
Jacob Brydolf 2016-11-19 15:15:11 +01:00 committed by Jaquee
parent d4657804cd
commit 5a110f410f
No known key found for this signature in database
GPG key ID: 384E52B09F45DC39

View file

@ -685,11 +685,11 @@ ApplicationWindow {
// TODO: replace with customized popups
// Information dialog
MessageDialog {
StandardDialog {
// dynamically change onclose handler
property var onCloseCallback
id: informationPopup
standardButtons: StandardButton.Ok
cancelVisible: false
onAccepted: {
if (onCloseCallback) {
onCloseCallback()
@ -698,10 +698,10 @@ ApplicationWindow {
}
// Confrirmation aka question dialog
MessageDialog {
StandardDialog {
id: transactionConfirmationPopup
standardButtons: StandardButton.Ok + StandardButton.Cancel
onAccepted: {
close();
handleTransactionConfirmed()
}
}