From: Olivier Goffart Date: Fri, 23 Oct 2015 15:06:14 +0000 (+0200) Subject: Delete all files: make the 'Keep' on by default X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~1510 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=bd39c64798426180cf22055325dafc3deb5d4f45;p=nextcloud-desktop.git Delete all files: make the 'Keep' on by default On windows, we need to specify at least one AcceptRole. Otherwise the DestructiveRole might become the default Issue #3824 --- diff --git a/src/gui/folder.cpp b/src/gui/folder.cpp index fbd6a2adc..53509edc8 100644 --- a/src/gui/folder.cpp +++ b/src/gui/folder.cpp @@ -1142,7 +1142,7 @@ void Folder::slotAboutToRemoveAllFiles(SyncFileItem::Direction, bool *cancel) QMessageBox msgBox(QMessageBox::Warning, tr("Remove All Files?"), msg.arg(alias())); msgBox.addButton(tr("Remove all files"), QMessageBox::DestructiveRole); - QPushButton* keepBtn = msgBox.addButton(tr("Keep files"), QMessageBox::ActionRole); + QPushButton* keepBtn = msgBox.addButton(tr("Keep files"), QMessageBox::AcceptRole); if (msgBox.exec() == -1) { *cancel = true; return;