Skip to content

Commit

Permalink
Merge pull request #6635 from nextcloud/bugfix/crash-mac-vfs-toggle
Browse files Browse the repository at this point in the history
Fix crash when in debug mode when toggling enabled status of an account's virtual files (macOS)
  • Loading branch information
claucambra authored Apr 16, 2024
2 parents 3ab692c + 3dcef75 commit fe6f47e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/macOS/fileprovidersettingscontroller_mac.mm
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ explicit MacImplementation(FileProviderSettingsController *const parent)
NSArray<NSString *> *const modifiedVfsAccounts = mutableVfsAccounts.copy;
[_userDefaults setObject:modifiedVfsAccounts forKey:_accountsKey];

Q_ASSERT(vfsEnabledForAccount(userIdAtHost) == userIdAtHost);
Q_ASSERT(vfsEnabledForAccount(userIdAtHost) == setEnabled);

return VfsAccountsAction::VfsAccountsEnabledChanged;
}
Expand Down

0 comments on commit fe6f47e

Please sign in to comment.