diff options
author | Robin Gareus <robin@gareus.org> | 2017-11-23 09:22:21 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-11-23 09:50:50 +0100 |
commit | 55ee5d2e502e2d214425925b84bcf54c04f96f6e (patch) | |
tree | 7b172cc93ee6a90f4f6e03c06c2604526411c8e0 /gtk2_ardour/ardour_ui_options.cc | |
parent | 7d4353dddc36c023e52dc7504c513698900f62d2 (diff) |
Fix duplicate if(A) else if (A) condition
Issue came to be from consolidating Session and UI configuration.
Found by PVS-Studio - https://www.viva64.com/en/b/0540/
Diffstat (limited to 'gtk2_ardour/ardour_ui_options.cc')
-rw-r--r-- | gtk2_ardour/ardour_ui_options.cc | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/gtk2_ardour/ardour_ui_options.cc b/gtk2_ardour/ardour_ui_options.cc index 0a6bd683a6..d5fac401b3 100644 --- a/gtk2_ardour/ardour_ui_options.cc +++ b/gtk2_ardour/ardour_ui_options.cc @@ -514,10 +514,6 @@ ARDOUR_UI::parameter_changed (std::string p) } } else if (p == "layered-record-mode") { layered_button.set_active (_session->config.get_layered_record_mode ()); - } else if (p == "show-waveform-clipping") { - ArdourWaveView::WaveView::set_global_show_waveform_clipping (UIConfiguration::instance().get_show_waveform_clipping()); - } else if (p == "waveform-gradient-depth") { - ArdourWaveView::WaveView::set_global_gradient_depth (UIConfiguration::instance().get_waveform_gradient_depth()); } else if (p == "flat-buttons") { bool flat = UIConfiguration::instance().get_flat_buttons(); if (ArdourButton::flat_buttons () != flat) { |