diff --git a/src/ui/simulator/toolbox/components/datagrid/renderer/mc-playlist.cpp b/src/ui/simulator/toolbox/components/datagrid/renderer/mc-playlist.cpp index fe9401101d..b1fc490069 100644 --- a/src/ui/simulator/toolbox/components/datagrid/renderer/mc-playlist.cpp +++ b/src/ui/simulator/toolbox/components/datagrid/renderer/mc-playlist.cpp @@ -99,6 +99,7 @@ namespace Renderer bool v = s.to() || s == "active" || s == "enabled"; assert(study->parameters.yearsFilter); study->parameters.yearsFilter[y] = v; + break; } case MCPlaylistCol::WEIGHT : { @@ -112,6 +113,7 @@ namespace Renderer return false; } } + break; } } diff --git a/src/ui/simulator/windows/options/playlist/playlist.cpp b/src/ui/simulator/windows/options/playlist/playlist.cpp index f3d32fb7b4..2044ca7a19 100644 --- a/src/ui/simulator/windows/options/playlist/playlist.cpp +++ b/src/ui/simulator/windows/options/playlist/playlist.cpp @@ -207,6 +207,10 @@ namespace Options Freeze(); for (uint i = 0; i != study.parameters.nbYears; ++i) study.parameters.yearsFilter[i] = true; + + + onUpdateStatus(); + pGrid->forceRefresh(); updateCaption(); Dispatcher::GUI::Refresh(pGrid); @@ -225,6 +229,9 @@ namespace Options Freeze(); for (uint i = 0; i != study.parameters.nbYears; ++i) study.parameters.yearsFilter[i] = false; + + onUpdateStatus(); + pGrid->forceRefresh(); updateCaption(); Dispatcher::GUI::Refresh(pGrid); @@ -246,6 +253,9 @@ namespace Options study.parameters.yearsFilter[i] = !study.parameters.yearsFilter[i]; } + + onUpdateStatus(); + pGrid->forceRefresh(); updateCaption(); Dispatcher::GUI::Refresh(pGrid);