Make sure the proper constructor is called and the probe config file is loaded.

git-svn-id: http://voip.null.ro/svn/yate@2592 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2009-04-17 15:57:02 +00:00
parent 090af32b89
commit 5814bc741c
1 changed files with 1 additions and 1 deletions

View File

@ -126,7 +126,7 @@ bool UpdateLogic::initializedClient()
{
// Check if the current user can write to install dir
// Disable and uncheck all updater UI controls on failure
Configuration cfg = Engine::configFile("updater");
Configuration cfg(Engine::configFile("updater"));
m_canUpdate = !File::exists(cfg) || cfg.save();
if (!m_canUpdate) {
Debug(toString(),DebugInfo,"Disabling updates: the current user can't write to '%s'",