From b492b69dfd6c820bcc4840eedd290cc1f4d5bec1 Mon Sep 17 00:00:00 2001 From: Hannah von Reth Date: Fri, 29 May 2020 13:29:46 +0200 Subject: [PATCH] Fix 150a5b4d06600d140ddf05383fb74cda6ae6e941 --- src/gui/accountsettings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/accountsettings.cpp b/src/gui/accountsettings.cpp index 6839c9b48..c88d2bb06 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.