From: Hannah von Reth Date: Fri, 29 May 2020 11:29:46 +0000 (+0200) Subject: Fix 150a5b4d06600d140ddf05383fb74cda6ae6e941 X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~21^2~468^2~101 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=b492b69dfd6c820bcc4840eedd290cc1f4d5bec1;p=nextcloud-desktop.git Fix 150a5b4d06600d140ddf05383fb74cda6ae6e941 --- 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.