Fixed strange situation when we had wxPathExists and wxDirExists with the same finctionality. Using wxPathExists instead wxFileExists (fixes bug #865628). Minor source cleaning.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32862 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -35,7 +35,6 @@
|
||||
3. SameFileAs() function to compare inodes under Unix
|
||||
*/
|
||||
|
||||
// ridiculously enough, this will replace DirExists with wxDirExists etc
|
||||
#include "wx/filefn.h"
|
||||
#include "wx/datetime.h"
|
||||
|
||||
@@ -186,7 +185,7 @@ public:
|
||||
bool IsOk() const
|
||||
{
|
||||
// we're fine if we have the path or the name or if we're a root dir
|
||||
return m_dirs.size() != 0 || !m_name.IsEmpty() || !m_relative ||
|
||||
return m_dirs.size() != 0 || !m_name.empty() || !m_relative ||
|
||||
!m_ext.empty() || m_hasExt;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user