mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-23 13:35:58 +03:00
Share dialog: Don't close on enter
Setting default=false was not enough.
This commit is contained in:
parent
f7932bb0c7
commit
f9dc569b0a
1 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue