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:
parent
5637e811f9
commit
483ca4e19d
@ -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
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user