on xenial help sign in
Add more comments
commitac626e780d9098ec8bf6ea7ed88ada02b73f016c authorYing-Chun Liu <paul.liu@canonical.com> dateTue 6 May 2014, 22:45 (12 years ago) parent578bc33
1 file changed+4
qml/Shell.qml+4
qml/Shell.qml+4
@@ -283,9 +283,12 @@ FocusScope {
283283 target: DBusUnitySessionService
284284
285285 onLogoutRequested: {
286+ // TODO: Display a dialog to ask the user to confirm.
287+ DBusUnitySessionService.Logout();
286288 }
287289
288290 onLogoutReady: {
291+ // close all the apps.
289292 while (true) {
290293 var app = ApplicationManager.get(0);
291294 if (app === null) {
@@ -293,6 +296,7 @@ FocusScope {
293296 }
294297 ApplicationManager.stopApplication(app.appId);
295298 }
299+
296300 Qt.quit();
297301 }
298302 }