Fix compilation on Linux

This commit is contained in:
Thomas Goyne 2015-12-21 19:47:58 -08:00
parent 26361c5003
commit afed3dca21
2 changed files with 2 additions and 2 deletions

View File

@ -80,7 +80,7 @@ struct recent_subtitle_entry : public Command {
wxGetApp().NewProjectContext().project->LoadSubtitles(config::mru->GetEntry("Subtitle", id));
#else
if (c->subsController->TryToClose() == wxCANCEL) return;
c->project->LoadSubtitles();
c->project->LoadSubtitles(config::mru->GetEntry("Subtitle", id));
#endif
}
};

View File

@ -244,7 +244,7 @@ struct subtitle_new final : public Command {
#ifdef __APPLE__
wxGetApp().NewProjectContext();
#else
if (is_okay_to_reuse_existing_window(c))
if (is_okay_to_close_subtitles(c))
c->project->CloseSubtitles();
#endif
}