Don't try to use wxFileName::Exists with wx 2.9.3. Closes #1500.

Originally committed to SVN as r6913.
This commit is contained in:
Thomas Goyne 2012-06-23 01:06:32 +00:00
parent fd017b52ac
commit bfa3aba654

View file

@ -70,7 +70,11 @@ wxString cache_path() {
for (int i=0;i<100;i++) {
// File exists?
wxFileName curNameTry(cache_dir(), wxString::Format(pattern, i));
#if wxCHECK_VERSION(2, 9, 4)
if (!curNameTry.Exists())
#else
if (!curNameTry.FileExists() && !curNameTry.DirExists())
#endif
return curNameTry.GetFullPath();
}
return "";