From 03b1b8e1c0dcbb1aef1ae9ad93fc329cad8f0c02 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Fri, 8 Jun 2012 21:20:21 +0000 Subject: [PATCH] Flush options before restarting so that language changes actually apply Originally committed to SVN as r6892. --- aegisub/src/utils.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/aegisub/src/utils.cpp b/aegisub/src/utils.cpp index 8b4a30fe5..ec15c10a8 100644 --- a/aegisub/src/utils.cpp +++ b/aegisub/src/utils.cpp @@ -57,6 +57,7 @@ #endif #include "compat.h" +#include "main.h" wxString MakeRelativePath(wxString _path, wxString reference) { if (_path.empty() || _path[0] == '?') return _path; @@ -275,6 +276,8 @@ int AegiStringToFix(const wxString &str,size_t decimalPlaces,int start,int end) } void RestartAegisub() { + config::opt->Flush(); + #if defined(__WXMSW__) wxStandardPaths stand; wxExecute("\"" + stand.GetExecutablePath() + "\"");