mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 21:42: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
2 changed files with 6 additions and 5 deletions
|
@ -94,7 +94,7 @@ void ExplorerGlobals::read_persistent()
|
||||||
_cfg_path.printf(TEXT("%s\\ros-explorer-cfg.xml"), _cfg_dir.c_str());
|
_cfg_path.printf(TEXT("%s\\ros-explorer-cfg.xml"), _cfg_dir.c_str());
|
||||||
|
|
||||||
if (!_cfg.read_file(_cfg_path)) {
|
if (!_cfg.read_file(_cfg_path)) {
|
||||||
//if (_cfg._last_error != XML_ERROR_NO_ELEMENTS)
|
if (!_cfg._errors.empty())
|
||||||
MessageBox(_hwndDesktop, _cfg._errors.str(),
|
MessageBox(_hwndDesktop, _cfg._errors.str(),
|
||||||
TEXT("ROS Explorer - reading user settings"), MB_OK);
|
TEXT("ROS Explorer - reading user settings"), MB_OK);
|
||||||
|
|
||||||
|
|
|
@ -427,6 +427,7 @@ bool Favorites::read(LPCTSTR path)
|
||||||
XMLDoc xbel;
|
XMLDoc xbel;
|
||||||
|
|
||||||
if (!xbel.read_file(path)) {
|
if (!xbel.read_file(path)) {
|
||||||
|
if (!xbel._errors.empty())
|
||||||
MessageBox(g_Globals._hwndDesktop, xbel._errors.str(),
|
MessageBox(g_Globals._hwndDesktop, xbel._errors.str(),
|
||||||
TEXT("ROS Explorer - reading bookmark file"), MB_OK);
|
TEXT("ROS Explorer - reading bookmark file"), MB_OK);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue