From 6a5a61d39aec4d503e7bc4e9dd0cb2c26be29e81 Mon Sep 17 00:00:00 2001 From: James Crook Date: Sun, 18 Feb 2018 16:54:17 +0000 Subject: [PATCH] Fix reload bug. --- src/commands/PreferenceCommands.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/commands/PreferenceCommands.cpp b/src/commands/PreferenceCommands.cpp index fa2671aaa..3d3510b10 100644 --- a/src/commands/PreferenceCommands.cpp +++ b/src/commands/PreferenceCommands.cpp @@ -72,8 +72,9 @@ void SetPreferenceCommand::PopulateOrExchange(ShuttleGui & S) bool SetPreferenceCommand::Apply(const CommandContext & context) { bool bOK = gPrefs->Write(mName, mValue) && gPrefs->Flush(); - if( bOK && mbReload ) + if( bOK && mbReload ){ context.GetProject()->OnReloadPreferences( context ); + } return bOK; }