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:
parent
15b33aff04
commit
651289ea26
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user