- Merge from trunk up to r45543
[reactos.git] / base / shell / explorer / explorer.cpp
index 0a3d533..f555010 100644 (file)
@@ -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"));
        }