From: Claudio Cambra Date: Tue, 16 Apr 2024 19:05:46 +0000 (+0800) Subject: Fix crash when in debug mode when toggling enabled status of an account's virtual... X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~7^2~47^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=2e6a84414341db4541b88786d74a8c13672cb011;p=nextcloud-desktop.git Fix crash when in debug mode when toggling enabled status of an account's virtual files (macOS) Caused by comparing to the wrong thing in the Q_ASSERT *facepalm* Signed-off-by: Claudio Cambra --- diff --git a/src/gui/macOS/fileprovidersettingscontroller_mac.mm b/src/gui/macOS/fileprovidersettingscontroller_mac.mm index 5e6f89241..7e97c6b8e 100644 --- a/src/gui/macOS/fileprovidersettingscontroller_mac.mm +++ b/src/gui/macOS/fileprovidersettingscontroller_mac.mm @@ -122,7 +122,7 @@ public: NSArray *const modifiedVfsAccounts = mutableVfsAccounts.copy; [_userDefaults setObject:modifiedVfsAccounts forKey:_accountsKey]; - Q_ASSERT(vfsEnabledForAccount(userIdAtHost) == userIdAtHost); + Q_ASSERT(vfsEnabledForAccount(userIdAtHost) == setEnabled); return VfsAccountsAction::VfsAccountsEnabledChanged; }