- wxMessageDialog* dialog = new wxMessageDialog (
- 0,
- wxString::Format (_("Save changes to film \"%s\" before closing?"), std_to_wx (_film->name()).data()),
- /// TRANSLATORS: this is the heading for a dialog box, which tells the user that the current
- /// project (Film) has been changed since it was last saved.
- _("Film changed"),
- wxYES_NO | wxCANCEL | wxYES_DEFAULT | wxICON_QUESTION
- );
-
- dialog->SetYesNoCancelLabels (
- _("Save film and close"), _("Close without saving film"), _("Don't close")
- );
-
- int const r = dialog->ShowModal ();
- dialog->Destroy ();
+ FilmChangedDialog* dialog = new FilmChangedDialog (_film->name ());
+ int const r = dialog->run ();
+ delete dialog;