X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9f04ccb1abb57e326def8a5bab3914ae8a7451b7..e6f09be7daf93088ba0eb956a9bf9c92343a622f:/include/wx/textfile.h diff --git a/include/wx/textfile.h b/include/wx/textfile.h index aea625af7d..a7b213d177 100644 --- a/include/wx/textfile.h +++ b/include/wx/textfile.h @@ -63,7 +63,7 @@ public: // closes the file and frees memory, losing all changes bool Close(); // is file currently opened? - bool IsOpened() const { return m_file.IsOpened(); } + bool IsOpened() const { return m_isOpened; } // accessors // get the number of lines in the file @@ -137,6 +137,8 @@ private: size_t m_nCurLine; // number of current line in the file + bool m_isOpened; // was the file successfully opened the last time? + wxString m_strFile; // name of the file };