From 2e6a84414341db4541b88786d74a8c13672cb011 Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Wed, 17 Apr 2024 03:05:46 +0800 Subject: [PATCH] Fix crash when in debug mode when toggling enabled status of an account's virtual files (macOS) Caused by comparing to the wrong thing in the Q_ASSERT *facepalm* Signed-off-by: Claudio Cambra --- src/gui/macOS/fileprovidersettingscontroller_mac.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/macOS/fileprovidersettingscontroller_mac.mm b/src/gui/macOS/fileprovidersettingscontroller_mac.mm index 5e6f89241f5a8..7e97c6b8ed8c9 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; }