summaryrefslogtreecommitdiff
path: root/gui/qml
diff options
context:
space:
mode:
Diffstat (limited to 'gui/qml')
-rw-r--r--gui/qml/main.qml6
1 files changed, 5 insertions, 1 deletions
diff --git a/gui/qml/main.qml b/gui/qml/main.qml
index b4aa19a..09bbab5 100644
--- a/gui/qml/main.qml
+++ b/gui/qml/main.qml
@@ -20,12 +20,14 @@ ApplicationWindow {
donate.visible = true
}
if (ctx.errors ) {
- // TODO consider disabling on/off buttons, or quit after closing the dialog
if ( ctx.errors == "nohelpers" ) {
showInitFailure(qsTr("Could not find helpers. Check your installation"))
} else if ( ctx.errors == "nopolkit" ) {
showInitFailure(qsTr("Could not find polkit agent."))
} else {
+ //: %1 -> application name
+ //: %2 -> error string
+ showInitFailure(qsTr("Got an error starting %1: %2").arg(ctx.appName).arg(ctx.errors))
console.debug(ctx.errors)
}
}
@@ -248,5 +250,7 @@ ApplicationWindow {
title: qsTr("Initialization Error")
text: ""
visible: false
+ onAccepted: backend.quit()
+ onRejected: backend.quit()
}
}