Fix 150a5b4d06600d140ddf05383fb74cda6ae6e941

This commit is contained in:
Hannah von Reth 2020-05-29 13:29:46 +02:00 committed by Kevin Ottens
parent 6fde08d9f7
commit b492b69dfd
No known key found for this signature in database
GPG key ID: 074BBBCB8DECC9E2

View file

@ -735,7 +735,7 @@ void AccountSettings::slotDisableVfsCurrentFolder()
msgBox->addButton(tr("Cancel"), QMessageBox::RejectRole); msgBox->addButton(tr("Cancel"), QMessageBox::RejectRole);
connect(msgBox, &QMessageBox::finished, msgBox, [this, msgBox, folder, acceptButton] { connect(msgBox, &QMessageBox::finished, msgBox, [this, msgBox, folder, acceptButton] {
msgBox->deleteLater(); msgBox->deleteLater();
if (msgBox->clickedButton() == acceptButton|| !folder) if (msgBox->clickedButton() != acceptButton|| !folder)
return; return;
// It is unsafe to switch off vfs while a sync is running - wait if necessary. // It is unsafe to switch off vfs while a sync is running - wait if necessary.