diff --git a/src/qml/main.qml b/src/qml/main.qml
index 6327dacb43d8b44a63aa64d52a6f62e631860370..27f892afa31633b2e4eaefaca01502c5dfb6c7b4 100644
--- a/src/qml/main.qml
+++ b/src/qml/main.qml
@@ -43,8 +43,8 @@ Window {
         text: ''
         informativeText: ''
         detailedText: ''
-        standardButtons: StandardButton.Ok
-        onAccepted: Qt.quit()
+        standardButtons: StandardButton.Close
+        onRejected: Qt.quit()
     }
 
     Dialog {