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:
parent
fd017b52ac
commit
bfa3aba654
1 changed files with 4 additions and 0 deletions
|
@ -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 "";
|
||||
|
|
Loading…
Reference in a new issue