diff options
author | Robin Gareus <robin@gareus.org> | 2018-10-29 21:50:08 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2018-10-29 21:50:08 +0100 |
commit | 7d8b93add17620135eadee5029325a3d22512b12 (patch) | |
tree | a21c42ddd0b922db3929312ac227fc31faa7685f /gtk2_ardour/plugin_pin_dialog.h | |
parent | 6c19a776f43b4a9869780e3312764d039a16cd39 (diff) |
Consolidate PinDialog Session/recording checks
- _session cannot be NULL while the dialog is visible.
This removes extra `if (_session)` tests.
- Operations now no longer fail silently, but show error messages.
Diffstat (limited to 'gtk2_ardour/plugin_pin_dialog.h')
-rw-r--r-- | gtk2_ardour/plugin_pin_dialog.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk2_ardour/plugin_pin_dialog.h b/gtk2_ardour/plugin_pin_dialog.h index 09e5da4829..c652af8a33 100644 --- a/gtk2_ardour/plugin_pin_dialog.h +++ b/gtk2_ardour/plugin_pin_dialog.h @@ -182,6 +182,8 @@ private: void queue_idle_update (); bool idle_update (); + void error_message_dialog (std::string const&) const; + uint32_t _n_plugins; ARDOUR::ChanCount _in, _ins, _out; ARDOUR::ChanCount _sinks, _sources; |