Fix crash when in debug mode when toggling enabled status of an account's virtual...
authorClaudio Cambra <claudio.cambra@nextcloud.com>
Tue, 16 Apr 2024 19:05:46 +0000 (03:05 +0800)
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>
Tue, 16 Apr 2024 20:45:17 +0000 (20:45 +0000)
Caused by comparing to the wrong thing in the Q_ASSERT *facepalm*

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
src/gui/macOS/fileprovidersettingscontroller_mac.mm

index 5e6f89241f5a8440cde83796c2acb0807caa70c2..7e97c6b8ed8c948a9a48481a2e96bd642cd364c3 100644 (file)
@@ -122,7 +122,7 @@ public:
         NSArray<NSString *> *const modifiedVfsAccounts = mutableVfsAccounts.copy;
         [_userDefaults setObject:modifiedVfsAccounts forKey:_accountsKey];
 
-        Q_ASSERT(vfsEnabledForAccount(userIdAtHost) == userIdAtHost);
+        Q_ASSERT(vfsEnabledForAccount(userIdAtHost) == setEnabled);
 
         return VfsAccountsAction::VfsAccountsEnabledChanged;
     }