Another try at the wxString / std / i18n confusions.
[dcpomatic.git] / src / wx / film_editor.cc
index 4ef30fd050fab0cb77ad1eed5e76c7f1e55cdc60..a94ed7b2d8e3bc056f90211a65b072d32c17384d 100644 (file)
@@ -501,7 +501,7 @@ FilmEditor::content_changed (wxCommandEvent &)
                _film->set_content (wx_to_std (_content->GetPath ()));
        } catch (std::exception& e) {
                _content->SetPath (std_to_wx (_film->directory ()));
-               error_dialog (this, std_to_wx (String::compose (wx_to_std (_("Could not set content: %1")), e.what ())));
+               error_dialog (this, wxString::Format (_("Could not set content: %1"), std_to_wx (e.what()).data()));
        }
 }