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; }