From: Christian Kamm Date: Tue, 24 Nov 2015 08:58:18 +0000 (+0100) Subject: Share dialog: Don't close on enter X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~1390^2~32 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=f9dc569b0a60835fc1f225666ba0da062a27c9f4;p=nextcloud-desktop.git Share dialog: Don't close on enter Setting default=false was not enough. --- 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);