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 // apply new setting to the server and update it
pServer->SetServerListEnabled ( bRegState ); pServer->SetServerListEnabled ( bRegState );
// If registering is enabled, update data. If registering is disabled, // if registering is disabled, unregister slave server
// unregister slave server if ( !bRegState )
if ( bRegState )
{
pServer->UpdateServerList();
}
else
{ {
pServer->UnregisterSlaveServer(); pServer->UnregisterSlaveServer();
} }
pServer->UpdateServerList();
// update GUI dependencies // update GUI dependencies
UpdateGUIDependencies(); UpdateGUIDependencies();
} }