diff options
author | root <root@rshg054.dnsready.net> | 2013-08-20 02:15:20 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-08-20 02:15:20 -0700 |
commit | 1ae31a85e191bbf7313077b472a66d1c24af1f74 (patch) | |
tree | 91f021858c2e33e1a6633c12b80e54105fd7500b /community/aegisub/wxgtk2.9.5.patch | |
parent | 26606f981048ee9efcda690b619d3c53501a7a58 (diff) |
Tue Aug 20 02:14:51 PDT 2013
Diffstat (limited to 'community/aegisub/wxgtk2.9.5.patch')
-rw-r--r-- | community/aegisub/wxgtk2.9.5.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/community/aegisub/wxgtk2.9.5.patch b/community/aegisub/wxgtk2.9.5.patch new file mode 100644 index 000000000..5c0b805ff --- /dev/null +++ b/community/aegisub/wxgtk2.9.5.patch @@ -0,0 +1,36 @@ +From ca8036d425bf59020b476259e7857e8c67ebb6ba Mon Sep 17 00:00:00 2001 +From: Maxime Gauduin <alucryd@gmail.com> +Date: Mon, 12 Aug 2013 05:20:41 +0200 +Subject: [PATCH] wxStandardPaths is protected as of wxgtk 2.9.5 + +--- + aegisub/src/utils.cpp | 6 ++---- + 1 file changed, 2 insertions(+), 4 deletions(-) + +diff --git a/aegisub/src/utils.cpp b/aegisub/src/utils.cpp +index 70c9ea1..f72593d 100644 +--- a/aegisub/src/utils.cpp ++++ b/aegisub/src/utils.cpp +@@ -121,8 +121,7 @@ void RestartAegisub() { + config::opt->Flush(); + + #if defined(__WXMSW__) +- wxStandardPaths stand; +- wxExecute("\"" + stand.GetExecutablePath() + "\""); ++ wxExecute("\"" + wxStandardPaths::Get().GetExecutablePath() + "\""); + #elif defined(__WXMAC__) + std::string bundle_path = agi::util::OSX_GetBundlePath(); + std::string helper_path = agi::util::OSX_GetBundleAuxillaryExecutablePath("restart-helper"); +@@ -132,8 +131,7 @@ void RestartAegisub() { + LOG_I("util/restart/exec") << exec; + wxExecute(exec); + #else +- wxStandardPaths stand; +- wxExecute(stand.GetExecutablePath()); ++ wxExecute(wxStandardPaths::Get().GetExecutablePath()); + #endif + } + +-- +1.8.3.4 + |