on xenial help sign in
fix dialog
commit2ca8c3b8972f2354357c9851d0dbabc37f165fcc authorYing-Chun Liu <paul.liu@canonical.com> dateTue 8 Jul 2014, 21:58 (12 years ago) parent07d7dd9
1 file changed+7−7
qml/Shell.qml+7−7
qml/Shell.qml+7−7
@@ -350,28 +350,28 @@ FocusScope {
350350 Dialog {
351351 id: dialoguePower
352352 title: "Power"
353− text: "What do you want to do?"
353+ text: i18n.tr("Are you sure you would like to turn power off?")
354354 Button {
355− text: "Cancel"
355+ text: i18n.tr("Power off")
356356 onClicked: {
357+ dBusUnitySessionServiceConnection.closeAllApps();
358+ DBusUnitySessionService.Shutdown();
357359 PopupUtils.close(dialoguePower);
358360 stages.dialogShown = false;
359361 }
360362 }
361363 Button {
362− text: "Shutdown"
364+ text: i18n.tr("Restart")
363365 onClicked: {
364366 dBusUnitySessionServiceConnection.closeAllApps();
365− DBusUnitySessionService.Shutdown();
367+ DBusUnitySessionService.Reboot();
366368 PopupUtils.close(dialoguePower);
367369 stages.dialogShown = false;
368370 }
369371 }
370372 Button {
371− text: "Reboot"
373+ text: i18n.tr("Cancel")
372374 onClicked: {
373− dBusUnitySessionServiceConnection.closeAllApps();
374− DBusUnitySessionService.Reboot();
375375 PopupUtils.close(dialoguePower);
376376 stages.dialogShown = false;
377377 }