diff --git a/include/wx/filename.h b/include/wx/filename.h index b2abdf4569..95cbb18de5 100644 --- a/include/wx/filename.h +++ b/include/wx/filename.h @@ -367,9 +367,10 @@ public: void RemoveLastDir() { RemoveDir(GetDirCount() - 1); } // Other accessors - void SetExt( const wxString &ext ) { m_ext = ext; } + void SetExt( const wxString &ext ) { m_ext = ext; m_hasExt = true; } + void SetNoExt() { m_ext = wxEmptyString; m_hasExt = false; } wxString GetExt() const { return m_ext; } - bool HasExt() const { return !m_ext.empty(); } + bool HasExt() const { return m_hasExt; } void SetName( const wxString &name ) { m_name = name; } wxString GetName() const { return m_name; }