mirror of
https://github.com/reactos/reactos.git
synced 2024-08-03 01:50:57 +00:00
avoid warning messages on Explorer startup when missing configuration files
svn path=/trunk/; revision=45011
This commit is contained in:
parent
8d89e2b027
commit
34689ba8c7
|
@ -94,9 +94,9 @@ void ExplorerGlobals::read_persistent()
|
|||
_cfg_path.printf(TEXT("%s\\ros-explorer-cfg.xml"), _cfg_dir.c_str());
|
||||
|
||||
if (!_cfg.read_file(_cfg_path)) {
|
||||
//if (_cfg._last_error != XML_ERROR_NO_ELEMENTS)
|
||||
MessageBox(_hwndDesktop, _cfg._errors.str(),
|
||||
TEXT("ROS Explorer - reading user settings"), MB_OK);
|
||||
if (!_cfg._errors.empty())
|
||||
MessageBox(_hwndDesktop, _cfg._errors.str(),
|
||||
TEXT("ROS Explorer - reading user settings"), MB_OK);
|
||||
|
||||
_cfg.read_file(TEXT("explorer-cfg-template.xml"));
|
||||
}
|
||||
|
|
|
@ -427,8 +427,9 @@ bool Favorites::read(LPCTSTR path)
|
|||
XMLDoc xbel;
|
||||
|
||||
if (!xbel.read_file(path)) {
|
||||
MessageBox(g_Globals._hwndDesktop, xbel._errors.str(),
|
||||
TEXT("ROS Explorer - reading bookmark file"), MB_OK);
|
||||
if (!xbel._errors.empty())
|
||||
MessageBox(g_Globals._hwndDesktop, xbel._errors.str(),
|
||||
TEXT("ROS Explorer - reading bookmark file"), MB_OK);
|
||||
}
|
||||
|
||||
const_XMLPos pos(&xbel);
|
||||
|
|
Loading…
Reference in a new issue