summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2015-04-03 11:35:32 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2015-04-03 11:35:37 -0400
commitf1147a30a777e7a1515c8208196e1ae4791476d6 (patch)
tree251cb6b8d3528ed89ea018677c5f93ee98a7dd33
parent4db35028b417e5192515067c4ed95ed587f5b303 (diff)
fix hard-coded version in config copy dialog; use yes/no buttons, and default to yes4.0-rc2
-rw-r--r--gtk2_ardour/ardour_ui.cc15
1 files changed, 10 insertions, 5 deletions
diff --git a/gtk2_ardour/ardour_ui.cc b/gtk2_ardour/ardour_ui.cc
index 39f1d8e6bc..66a5efdb2c 100644
--- a/gtk2_ardour/ardour_ui.cc
+++ b/gtk2_ardour/ardour_ui.cc
@@ -162,14 +162,19 @@ static bool
ask_about_configuration_copy (string const & old_dir, string const & new_dir, int version)
{
MessageDialog msg (string_compose (_("%1 %2.x has discovered configuration files from %1 %3.x.\n\n"
- "Would you like these files to be copied and used for %1 4.x?\n\n"
+ "Would you like these files to be copied and used for %1 %2.x?\n\n"
"(This will require you to restart %1.)"),
- PROGRAM_NAME, PROGRAM_VERSION, version), true);
-
- msg.add_button (Gtk::Stock::NO, Gtk::RESPONSE_NO);
+ PROGRAM_NAME, PROGRAM_VERSION, version),
+ false, /* no markup */
+ Gtk::MESSAGE_INFO,
+ Gtk::BUTTONS_YES_NO,
+ true /* modal, though it hardly matters since it is the only window */
+ );
+
+ msg.set_default_response (Gtk::RESPONSE_YES);
msg.show_all ();
- return (msg.run() == Gtk::RESPONSE_OK);
+ return (msg.run() == Gtk::RESPONSE_YES);
}
ARDOUR_UI::ARDOUR_UI (int *argcp, char **argvp[], const char* localedir)