1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-24 16:51:59 +01:00

Add condition against nullptr dereferencing to AnalyzerContainer::TogglePsychedelicColors()

This commit is contained in:
Ivan Leontiev 2015-08-18 23:21:34 +00:00
parent 15b33aff04
commit 651289ea26

View File

@ -153,7 +153,9 @@ void AnalyzerContainer::DisableAnalyzer() {
void AnalyzerContainer::TogglePsychedelicColors() {
psychedelic_colors_on_ = !psychedelic_colors_on_;
if (current_analyzer_) {
current_analyzer_->psychedelicModeChanged(psychedelic_colors_on_);
}
SavePsychedelic();
}