Set active text in buffer_size combo in EngineControl dialog
authorTim Mayberry <mojofunk@gmail.com>
Thu, 6 Aug 2015 14:15:49 +0000 (00:15 +1000)
committerTim Mayberry <mojofunk@gmail.com>
Thu, 6 Aug 2015 15:42:28 +0000 (01:42 +1000)
Fixes issue with empty buffer size combo when switching to the PA ASIO driver

gtk2_ardour/engine_dialog.cc

index 866f6e563f8dacd0283689e84c3250eb96075943..695940e44687e51fcc24a1f7d67b53364c715af5 100644 (file)
@@ -1161,6 +1161,7 @@ EngineControl::set_buffersize_popdown_strings (const std::string& device_name)
        if (!s.empty()) {
                buffer_size_combo.set_sensitive (true);
                set_popdown_strings (buffer_size_combo, s);
+               buffer_size_combo.set_active_text (s.front());
 
                uint32_t period = backend->buffer_size();
                if (0 == period) {