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