diff --git a/src/gui/macOS/fileprovidersettingscontroller_mac.mm b/src/gui/macOS/fileprovidersettingscontroller_mac.mm index 5e6f89241f5a..7e97c6b8ed8c 100644 --- a/src/gui/macOS/fileprovidersettingscontroller_mac.mm +++ b/src/gui/macOS/fileprovidersettingscontroller_mac.mm @@ -122,7 +122,7 @@ explicit MacImplementation(FileProviderSettingsController *const parent) NSArray *const modifiedVfsAccounts = mutableVfsAccounts.copy; [_userDefaults setObject:modifiedVfsAccounts forKey:_accountsKey]; - Q_ASSERT(vfsEnabledForAccount(userIdAtHost) == userIdAtHost); + Q_ASSERT(vfsEnabledForAccount(userIdAtHost) == setEnabled); return VfsAccountsAction::VfsAccountsEnabledChanged; }