bug fix with unchecking the register server in the server dialog -> it seems that after the time out, the server was registered anyway because the timer was not disabled (fix is not yet tested...)

This commit is contained in:
Volker Fischer 2012-07-06 16:54:50 +00:00
parent 458310e4a2
commit 69f4ef837d

View file

@ -357,17 +357,14 @@ void CLlconServerDlg::OnRegisterServerStateChanged ( int value )
// apply new setting to the server and update it
pServer->SetServerListEnabled ( bRegState );
// If registering is enabled, update data. If registering is disabled,
// unregister slave server
if ( bRegState )
{
pServer->UpdateServerList();
}
else
// if registering is disabled, unregister slave server
if ( !bRegState )
{
pServer->UnregisterSlaveServer();
}
pServer->UpdateServerList();
// update GUI dependencies
UpdateGUIDependencies();
}