Keep the RhythmFerret dialog window around after using an action.

Since 5.8-245-g3e43585fa, a response hides the dialog Window
in ArdourDialog::on_response (to prevent dialogs windows staying
around unresponsive while Ardour does background work).

The RF is special, and also the only dialog using explicit
add_action_widget().
This commit is contained in:
Robin Gareus 2017-04-07 00:29:02 +02:00
parent b38e81d261
commit bcab83205b
3 changed files with 8 additions and 1 deletions

View file

@ -47,7 +47,7 @@ public:
bool on_delete_event (GdkEventAny*); bool on_delete_event (GdkEventAny*);
void on_unmap (); void on_unmap ();
void on_show (); void on_show ();
void on_response (int); virtual void on_response (int);
private: private:
WM::ProxyTemporary* proxy; WM::ProxyTemporary* proxy;

View file

@ -172,6 +172,12 @@ RhythmFerret::RhythmFerret (Editor& e)
analysis_mode_changed (); analysis_mode_changed ();
} }
void
RhythmFerret::on_response (int response_id)
{
Gtk::Dialog::on_response (response_id);
}
void void
RhythmFerret::analysis_mode_changed () RhythmFerret::analysis_mode_changed ()
{ {

View file

@ -59,6 +59,7 @@ class RhythmFerret : public ArdourDialog {
RhythmFerret (Editor&); RhythmFerret (Editor&);
void set_session (ARDOUR::Session*); void set_session (ARDOUR::Session*);
void on_response (int);
protected: protected:
void on_hide (); void on_hide ();