diff options
author | David Robillard <d@drobilla.net> | 2009-05-07 02:13:59 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2009-05-07 02:13:59 +0000 |
commit | ad23d3e731514515d21e0f2c93214408054984d2 (patch) | |
tree | 1d49a33faf4a0cb19f1ad6bac4331bfd68c5c33a /src | |
parent | 0842129091caa79677e818a9a6b32cc37475d741 (diff) | |
download | patchage-ad23d3e731514515d21e0f2c93214408054984d2.tar.gz patchage-ad23d3e731514515d21e0f2c93214408054984d2.tar.bz2 patchage-ad23d3e731514515d21e0f2c93214408054984d2.zip |
Fix crash on tool bar update from Jack.
git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@1965 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r-- | src/Patchage.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Patchage.cpp b/src/Patchage.cpp index fc7c6b4..0a6d5e0 100644 --- a/src/Patchage.cpp +++ b/src/Patchage.cpp @@ -352,8 +352,11 @@ void Patchage::update_toolbar() { #if defined(USE_LIBJACK) || defined(HAVE_JACK_DBUS) - if (_enable_refresh && _jack_driver->is_attached()) + if (_enable_refresh && _jack_driver->is_attached()) { + _enable_refresh = false; _buffer_size_combo->set_active((int)log2f(_jack_driver->buffer_size()) - 5); + _enable_refresh = true; + } #endif } |