diff options
author | David Robillard <d@drobilla.net> | 2007-01-15 21:36:22 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-01-15 21:36:22 +0000 |
commit | 014ba4fb2d72bdc481c2ba76bd53901a39725b86 (patch) | |
tree | 638275625f694df61226e70f06281d0372ff7cdc /src/Patchage.cpp | |
parent | f0b1962683cf24caa94f9176536a667a179cfc52 (diff) | |
download | patchage-014ba4fb2d72bdc481c2ba76bd53901a39725b86.tar.gz patchage-014ba4fb2d72bdc481c2ba76bd53901a39725b86.tar.bz2 patchage-014ba4fb2d72bdc481c2ba76bd53901a39725b86.zip |
Fix potential crash on module removal.
Don't "pretend" to set Jack buffer size when change fails.
git-svn-id: http://svn.drobilla.net/lad/patchage@260 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/Patchage.cpp')
-rw-r--r-- | src/Patchage.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Patchage.cpp b/src/Patchage.cpp index f60bdef..61a9abd 100644 --- a/src/Patchage.cpp +++ b/src/Patchage.cpp @@ -712,7 +712,8 @@ Patchage::buffer_size_changed() //cerr << "BS Changed: " << selected << ": " << buffer_size << endl; - m_jack_driver->set_buffer_size(buffer_size); + if ( ! m_jack_driver->set_buffer_size(buffer_size)) + update_toolbar(); // reset combo box to actual value } } |