mirror of
https://github.com/clementine-player/Clementine
synced 2025-01-11 09:24:50 +01:00
Merge pull request #5004 from ivan-leontiev/fix-nullptr-deref
Add condition against nullptr dereferencing to AnalyzerContainer::TogglePsychedelicColors()
This commit is contained in:
commit
509b4ccdba
@ -153,7 +153,9 @@ void AnalyzerContainer::DisableAnalyzer() {
|
||||
|
||||
void AnalyzerContainer::TogglePsychedelicColors() {
|
||||
psychedelic_colors_on_ = !psychedelic_colors_on_;
|
||||
current_analyzer_->psychedelicModeChanged(psychedelic_colors_on_);
|
||||
if (current_analyzer_) {
|
||||
current_analyzer_->psychedelicModeChanged(psychedelic_colors_on_);
|
||||
}
|
||||
SavePsychedelic();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user