13
0

MIDI tracer: disable trace when window is closed

This fixes a bug with some MIDI port constantly tracing,
because trace_parser is never unset.
This commit is contained in:
Robin Gareus 2022-12-11 13:13:02 +01:00
parent 5637e811f9
commit 483ca4e19d
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
2 changed files with 19 additions and 0 deletions

View File

@ -128,6 +128,21 @@ MidiTracer::MidiTracer ()
MidiTracer::~MidiTracer() MidiTracer::~MidiTracer()
{ {
disconnect ();
}
void
MidiTracer::on_show ()
{
ArdourWindow::on_show ();
collect_toggle ();
}
void
MidiTracer::on_hide ()
{
ArdourWindow::on_hide ();
disconnect ();
} }
void void

View File

@ -53,6 +53,10 @@ public:
MidiTracer (); MidiTracer ();
~MidiTracer(); ~MidiTracer();
protected:
void on_show ();
void on_hide ();
private: private:
Gtk::TextView text; Gtk::TextView text;
Gtk::ScrolledWindow scroller; Gtk::ScrolledWindow scroller;