]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/regconf.cpp
Fixed one of the two MDI problems...see comments
[wxWidgets.git] / src / msw / regconf.cpp
index c7b7a470e60c3648793b5cf8c65d2f16114c0591..af4dc5ab68f01c6e29702dd0144ce4f483dfeefa 100644 (file)
@@ -386,13 +386,14 @@ void wxRegConfig::SetPath(const wxString& strPath)
 
     // change current key(s)
     m_keyLocal.SetName(m_keyLocalRoot, strRegPath);
-    m_keyGlobal.SetName(m_keyGlobalRoot, strRegPath);
 
-    // don't create it right now, wait until it is accessed
-    //m_keyLocal.Create();
+    if ( GetStyle() & wxCONFIG_USE_GLOBAL_FILE )
+    {
+      m_keyGlobal.SetName(m_keyGlobalRoot, strRegPath);
 
-    wxLogNull nolog;
-    m_keyGlobal.Open();
+      wxLogNull nolog;
+      m_keyGlobal.Open();
+    }
 }
 
 // ----------------------------------------------------------------------------