#include "wx/app.h"
#include "wx/file.h"
-#include "wx/textfile.h"
-#include "wx/utils.h"
#include "wx/utils.h"
#include "wx/math.h"
// ----------------------------------------------------------------------------
wxConfigPathChanger::wxConfigPathChanger(const wxConfigBase *pContainer,
- const wxString& strEntry)
+ const wxString& strEntry)
{
+ m_bChanged = false;
m_pContainer = (wxConfigBase *)pContainer;
// the path is everything which precedes the last slash
{
if ( m_pContainer->GetPath() != strPath )
{
- // do change the path
+ // we do change the path so restore it later
m_bChanged = true;
/* JACS: work around a memory bug that causes an assert
}
else {
// it's a name only, without path - nothing to do
- m_bChanged = false;
m_strName = strEntry;
}
}