mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-28 03:20:11 +01:00
fixed few GH issues
- fixed GH #209: Poco::NumberFormatter double length - fixed GH #204: Upgrade zlib to 1.2.8 - fixed GH #198: The "application.configDir" property is not always created.
This commit is contained in:
@@ -268,7 +268,10 @@ int Application::loadConfiguration(int priority)
|
||||
#endif
|
||||
if (n > 0)
|
||||
{
|
||||
_pConfig->setString("application.configDir", cfgPath.parent().toString());
|
||||
if (!cfgPath.isAbsolute())
|
||||
_pConfig->setString("application.configDir", cfgPath.absolute().parent().toString());
|
||||
else
|
||||
_pConfig->setString("application.configDir", cfgPath.parent().toString());
|
||||
}
|
||||
return n;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user