[Differential] [Commented On] D2790: Make application close upon Ctrl+Q

apol (Aleix Pol Gonzalez) noreply at phabricator.kde.org
Thu Sep 15 14:55:46 UTC 2016


apol added a comment.


  In https://phabricator.kde.org/D2790#51966, @broulik wrote:
  
  > So, Ctrl+Q always quits without confirmation? What about having a
  >
  >   singal aboutToQuit(var event)
  >
  > and then do:
  >
  >   onActivated: {
  >       var event = {accepted: false}
  >       aboutToQuit(event);
  >       if (!event.accepted) {
  >           Qt.quit();
  >       }
  >   }
  >
  > Then an app can
  >
  >   onAboutToQuit: {
  >       if (hasUnsavedChanges) {
  >           event.accepted = true;
  >           // ask for confirmation
  >       }
  >   }
  
  
  That could be interesting but could be out of scope for the patch? There's other ways the application can be closed.

REPOSITORY
  rKIRIGAMI Kirigami

REVISION DETAIL
  https://phabricator.kde.org/D2790

EMAIL PREFERENCES
  https://phabricator.kde.org/settings/panel/emailpreferences/

To: apol, #kirigami, mart
Cc: broulik, plasma-devel, apol
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20160915/1d4e4a8a/attachment.html>


More information about the Plasma-devel mailing list