]> sigrok.org Git - pulseview.git/commit
MainBar: Fix #594 by changing calling order and flag usage
authorSoeren Apel <redacted>
Mon, 13 Jul 2015 19:00:10 +0000 (21:00 +0200)
committerUwe Hermann <redacted>
Wed, 15 Jul 2015 16:08:56 +0000 (18:08 +0200)
commit0e0b6b3e3425f730c8ae0a36b5fb50c02ce0ba54
tree970b9934566f8c69f2fbc468249f9aa567055789
parentcf124e472f9b5be7f85ecf708fe5290d6a6d1c9e
MainBar: Fix #594 by changing calling order and flag usage

The reason that the sampling rate button disappears after a
sampling rate was selected is that there's a flaw in the
chain of events:

on_sample_rate_changed() which calls
commit_sample_rate() which sets updating_sample_rate_ and calls
on_config_changed() which calls
update_sample_rate_selector() which...
...clears the list and exits because updating_sample_rate_ is set.
pv/toolbars/mainbar.cpp