diff options
author | Robin Gareus <robin@gareus.org> | 2015-10-14 22:39:46 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2015-10-14 22:46:15 +0200 |
commit | 8b80fe04ad0cc4dc5429f65e21ed636ed87dc634 (patch) | |
tree | edbc7965b8701f82852e1fff96f84a6d24f158cc /gtk2_ardour/missing_file_dialog.cc | |
parent | 5eefdf7536e2b5fc10b98669c52cdbee13e6215c (diff) |
Avoid calls to Glib::ustring << operator at all cost.
Glib::operator<<(std::ostream&, Glib::ustring const&) involves
loadlocale which is not thread-safe on OSX.
This fixes various seemingly random crashes on OSX.
Diffstat (limited to 'gtk2_ardour/missing_file_dialog.cc')
-rw-r--r-- | gtk2_ardour/missing_file_dialog.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk2_ardour/missing_file_dialog.cc b/gtk2_ardour/missing_file_dialog.cc index 8f171947b4..9bbb564592 100644 --- a/gtk2_ardour/missing_file_dialog.cc +++ b/gtk2_ardour/missing_file_dialog.cc @@ -68,7 +68,7 @@ MissingFileDialog::MissingFileDialog (Session* s, const std::string& path, DataT msg.set_justify (JUSTIFY_LEFT); msg.set_markup (string_compose (_("%1 cannot find the %2 file\n\n<i>%3</i>\n\nin any of these folders:\n\n\ -<tt>%4</tt>\n\n"), PROGRAM_NAME, typestr, Glib::Markup::escape_text(path), Glib::Markup::escape_text (oss.str()))); +<tt>%4</tt>\n\n"), PROGRAM_NAME, typestr, Glib::Markup::escape_text(path).c_str(), Glib::Markup::escape_text (oss.str().c_str()))); HBox* hbox = manage (new HBox); hbox->pack_start (msg, false, true); |