X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fambiguous_file_dialog.cc;h=be4bdc2dc1a5505b53982a89d456d559cfde1c9c;hb=4aaae2eb3ba65f97e173b1751e1ee3bec8925ed5;hp=3527ab471aaa31b250ada544ca535136d3932cb6;hpb=241a9edd3eecf7d5062818ca391a2352500f9a01;p=ardour.git diff --git a/gtk2_ardour/ambiguous_file_dialog.cc b/gtk2_ardour/ambiguous_file_dialog.cc index 3527ab471a..be4bdc2dc1 100644 --- a/gtk2_ardour/ambiguous_file_dialog.cc +++ b/gtk2_ardour/ambiguous_file_dialog.cc @@ -38,6 +38,7 @@ AmbiguousFileDialog::AmbiguousFileDialog (const string& file, const vector::const_iterator i = paths.begin(); i != paths.end(); ++i) { _radio_buttons.push_back (manage (new RadioButton (_group, *i))); get_vbox()->pack_start (*_radio_buttons.back ()); + _radio_buttons.back()->signal_button_press_event().connect (sigc::mem_fun (*this, &AmbiguousFileDialog::rb_button_press), false); } get_vbox()->pack_start (*manage (new Label (_("\n\nPlease select the path that you want to get the file from.")))); @@ -48,6 +49,15 @@ AmbiguousFileDialog::AmbiguousFileDialog (const string& file, const vectortype == GDK_2BUTTON_PRESS) { + response (RESPONSE_OK); + } + return false; +} + int AmbiguousFileDialog::get_which () const {