fixed bug with not reading settings from HKLM

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26073 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2004-03-03 23:02:26 +00:00
parent bee96abfbc
commit 9a85c87d32
2 changed files with 5 additions and 3 deletions

View File

@@ -90,6 +90,8 @@ wxMSW:
- Added wxSP_NO_XP_THEME style to wxSplitterWindow to switch off - Added wxSP_NO_XP_THEME style to wxSplitterWindow to switch off
XP theming (some applications look bad without 3D borders) XP theming (some applications look bad without 3D borders)
- wxMenuBar::GetLabelTop() doesn't include '&'s in the label any more - wxMenuBar::GetLabelTop() doesn't include '&'s in the label any more
- wxRegConf couldn't read global settings without admin privileges and didn't
even try to do it by default -- now it does
2.5.1 2.5.1

View File

@@ -148,8 +148,8 @@ wxRegConfig::wxRegConfig(const wxString& appName, const wxString& vendorName,
if ( bDoUseGlobal ) if ( bDoUseGlobal )
{ {
wxLogNull nolog; wxLogNull nolog;
m_keyGlobalRoot.Open(); m_keyGlobalRoot.Open(wxRegKey::Read);
m_keyGlobal.Open(); m_keyGlobal.Open(wxRegKey::Read);
} }
} }
@@ -392,7 +392,7 @@ void wxRegConfig::SetPath(const wxString& strPath)
m_keyGlobal.SetName(m_keyGlobalRoot, strRegPath); m_keyGlobal.SetName(m_keyGlobalRoot, strRegPath);
wxLogNull nolog; wxLogNull nolog;
m_keyGlobal.Open(); m_keyGlobal.Open(wxRegKey::Read);
} }
} }