Skip to content

Commit

Permalink
Fix crash when in debug mode when toggling enabled status of an accou…
Browse files Browse the repository at this point in the history
…nt's virtual files (macOS)

Caused by comparing to the wrong thing in the Q_ASSERT *facepalm*

Signed-off-by: Claudio Cambra <[email protected]>
  • Loading branch information
claucambra authored and backportbot[bot] committed Apr 16, 2024
1 parent 3a7ae09 commit 2e6a844
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 2e6a844

Please sign in to comment.