diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2006-03-21 21:08:24 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2006-03-21 21:08:24 +0000 |
commit | 004a49b0c7051a4d0f8972b0aff0ef8fa9cab03d (patch) | |
tree | 714a876b19460d82f5793f68bc4c3bfefb480d32 /gtk2_ardour/route_ui.cc | |
parent | d63c0fa328429ff0d7917fe3f4458c97063ba450 (diff) |
Gtkmm2ext::Choice now inherits from Gtk::Dialog; embed/import rate mismatch dialog no longer hangs in recursive Main::run() call
git-svn-id: svn://localhost/trunk/ardour2@414 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/route_ui.cc')
-rw-r--r-- | gtk2_ardour/route_ui.cc | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/gtk2_ardour/route_ui.cc b/gtk2_ardour/route_ui.cc index e974b88a97..bf286e36f0 100644 --- a/gtk2_ardour/route_ui.cc +++ b/gtk2_ardour/route_ui.cc @@ -703,13 +703,12 @@ RouteUI::remove_this_route () Choice prompter (prompt, choices); - prompter.chosen.connect(sigc::ptr_fun(Gtk::Main::quit)); prompter.show_all (); - Gtk::Main::run (); - - if (prompter.get_choice() == 0) { - Glib::signal_idle().connect (bind (sigc::ptr_fun (&RouteUI::idle_remove_this_route), this)); + if (prompter.run () == RESPONSE_ACCEPT) { + if (prompter.get_choice() == 0) { + Glib::signal_idle().connect (bind (sigc::ptr_fun (&RouteUI::idle_remove_this_route), this)); + } } } |