aboutsummaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorselsta <selsta@sent.at>2020-04-25 21:10:25 +0200
committerselsta <selsta@sent.at>2020-04-25 21:10:25 +0200
commit4b0dcb95bf32796947bff3ac0d7dc766cc7cd9ea (patch)
tree5c681eb49c48653d19c4a400fe54718f6af26acf /components
parent585fb2810dc0d9b79255b9bd479559b36aa087d8 (diff)
downloadmonzero-gui-4b0dcb95bf32796947bff3ac0d7dc766cc7cd9ea.tar.gz
monzero-gui-4b0dcb95bf32796947bff3ac0d7dc766cc7cd9ea.tar.xz
monzero-gui-4b0dcb95bf32796947bff3ac0d7dc766cc7cd9ea.zip
StandardDialog: reset button text on close
Diffstat (limited to 'components')
-rw-r--r--components/StandardDialog.qml4
1 files changed, 4 insertions, 0 deletions
diff --git a/components/StandardDialog.qml b/components/StandardDialog.qml
index 38f0d369..df1aa2f4 100644
--- a/components/StandardDialog.qml
+++ b/components/StandardDialog.qml
@@ -90,6 +90,10 @@ Rectangle {
function close() {
root.visible = false;
+ // reset button text
+ okButton.text = qsTr("OK")
+ cancelButton.text = qsTr("Cancel")
+
closeCallback();
}