[Pkg-owncloud-commits] [owncloud-client] 63/70: Mac: Make <ESC> close the settings dialog again

Sandro Knauß hefee-guest at moszumanska.debian.org
Tue Jul 1 10:21:23 UTC 2014


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to branch master
in repository owncloud-client.

commit 7a8a3855b8d98f7f7704c21de5d464db1155cb49
Author: Daniel Molkentin <danimo at owncloud.com>
Date:   Fri Jun 20 16:37:07 2014 +0200

    Mac: Make <ESC> close the settings dialog again
---
 src/mirall/settingsdialogmac.cpp | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/mirall/settingsdialogmac.cpp b/src/mirall/settingsdialogmac.cpp
index eae0be9..23466c6 100644
--- a/src/mirall/settingsdialogmac.cpp
+++ b/src/mirall/settingsdialogmac.cpp
@@ -28,6 +28,13 @@ SettingsDialogMac::SettingsDialogMac(ownCloudGui *gui, QWidget *parent)
     setWindowFlags(Qt::Window | Qt::WindowTitleHint | Qt::CustomizeWindowHint |
                    Qt::WindowCloseButtonHint | Qt::WindowMaximizeButtonHint);
 
+
+    // Emulate dialog behavior: Escape means close
+    QAction *closeWindowAction = new QAction(this);
+    closeWindowAction->setShortcut(QKeySequence(Qt::Key_Escape));
+    connect(closeWindowAction, SIGNAL(triggered()), SLOT(close()));
+    addAction(closeWindowAction);
+
     setObjectName("SettingsMac"); // required as group for saveGeometry call
 
     setWindowTitle(tr("%1").arg(Theme::instance()->appNameGUI()));

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list