Add some debugging output for state restoration in Audio Setup dialog
authorTim Mayberry <mojofunk@gmail.com>
Tue, 25 Aug 2015 12:56:27 +0000 (22:56 +1000)
committerTim Mayberry <mojofunk@gmail.com>
Wed, 2 Sep 2015 02:07:15 +0000 (12:07 +1000)
gtk2_ardour/engine_dialog.cc

index 869c2afc6fe6b7c2ec6d0b02022d2d2c6993cc98..29ea0de0ee89dff143313dd8e776182a16e03415 100644 (file)
@@ -1669,6 +1669,7 @@ EngineControl::maybe_display_saved_state ()
        State state = get_saved_state_for_currently_displayed_backend_and_device ();
 
        if (state) {
+               DEBUG_ECONTROL ("Restoring saved state");
                PBD::Unwinder<uint32_t> protect_ignore_changes (ignore_changes, ignore_changes + 1);
 
                if (!_desired_sample_rate) {
@@ -1686,6 +1687,8 @@ EngineControl::maybe_display_saved_state ()
                        midi_option_combo.set_active_text (state->midi_option);
                        _midi_devices = state->midi_devices;
                }
+       } else {
+               DEBUG_ECONTROL ("Unable to find saved state for backend and devices");
        }
 }