Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Kamm <mail@ckamm.de>2015-11-24 11:58:18 +0300
committerChristian Kamm <mail@ckamm.de>2015-11-24 11:58:18 +0300
commitf9dc569b0a60835fc1f225666ba0da062a27c9f4 (patch)
tree27f008bde18ca815d64e5af49bd3a64064740371 /src/gui/sharedialog.cpp
parentf7932bb0c7412227b148af741a159c4bb4eab831 (diff)
Share dialog: Don't close on enter
Setting default=false was not enough.
Diffstat (limited to 'src/gui/sharedialog.cpp')
-rw-r--r--src/gui/sharedialog.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/sharedialog.cpp b/src/gui/sharedialog.cpp
index d5963fcf9..c85ffc8bb 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);