[Pkg-owncloud-commits] [owncloud-client] 400/484: Share dialog:	Don't close on enter
    Sandro Knauß 
    hefee-guest at moszumanska.debian.org
       
    Wed Dec 16 00:38:12 UTC 2015
    
    
  
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 f9dc569b0a60835fc1f225666ba0da062a27c9f4
Author: Christian Kamm <mail at ckamm.de>
Date:   Tue Nov 24 09:58:18 2015 +0100
    Share dialog: Don't close on enter
    
    Setting default=false was not enough.
---
 src/gui/sharedialog.cpp | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/gui/sharedialog.cpp b/src/gui/sharedialog.cpp
index d5963fc..c85ffc8 100644
--- a/src/gui/sharedialog.cpp
+++ b/src/gui/sharedialog.cpp
@@ -46,7 +46,10 @@ ShareDialog::ShareDialog(AccountPtr account, const QString &sharePath, const QSt
 
     QPushButton *closeButton = _ui->buttonBox->button(QDialogButtonBox::Close);
     connect(closeButton, SIGNAL(clicked()), this, SLOT(close()));
-    closeButton->setDefault(false); // Because people press enter in the dialog and we don't want to close for that
+
+    // Because people press enter in the dialog and we don't want to close for that
+    closeButton->setDefault(false);
+    closeButton->setAutoDefault(false);
 
     // Set icon
     QFileInfo f_info(_localPath);
-- 
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