+ if ( !strPath.IsEmpty() )
+ {
+ if ( m_pContainer->GetPath() != strPath )
+ {
+ // do change the path
+ m_bChanged = true;
+ m_strOldPath = m_pContainer->GetPath();
+ if ( *m_strOldPath.c_str() != wxCONFIG_PATH_SEPARATOR )
+ m_strOldPath += wxCONFIG_PATH_SEPARATOR;
+ m_pContainer->SetPath(strPath);
+ }
+
+ // in any case, use the just the name, not full path