fix for chat/settings button

This commit is contained in:
Volker Fischer 2011-05-29 06:25:58 +00:00
parent 037cdeaf83
commit 2303efb046
3 changed files with 199 additions and 173 deletions

View File

@ -626,7 +626,7 @@ void CChannel::UpdateSocketBufferSize ( const double dLocalStdDev )
// completely filled
// - we need at least a jitter buffer size of the audio packet duration
// -> add audio buffer duration
const double dHysteresis = 0.3;
const double dHysteresis = 0.2;
// accumulate the standard deviations of input network stream and
// internal timer,

View File

@ -915,6 +915,33 @@ void CLlconClientDlg::UpdateDisplay()
ledConnection->SetLight ( MUL_COL_LED_RED );
}
}
// update settings/chat buttons (do not fire signals since it is an update)
if ( chbSettings->isChecked() && !ClientSettingsDlg.isVisible() )
{
chbSettings->blockSignals ( true );
chbSettings->setChecked ( false );
chbSettings->blockSignals ( false );
}
if ( !chbSettings->isChecked() && ClientSettingsDlg.isVisible() )
{
chbSettings->blockSignals ( true );
chbSettings->setChecked ( true );
chbSettings->blockSignals ( false );
}
if ( chbChat->isChecked() && !ChatDlg.isVisible() )
{
chbChat->blockSignals ( true );
chbChat->setChecked ( false );
chbChat->blockSignals ( false );
}
if ( !chbChat->isChecked() && ChatDlg.isVisible() )
{
chbChat->blockSignals ( true );
chbChat->setChecked ( true );
chbChat->blockSignals ( false );
}
}
void CLlconClientDlg::SetGUIDesign ( const EGUIDesign eNewDesign )

View File

@ -117,8 +117,7 @@ public slots:
void OnConnectDisconBut();
void OnTimerSigMet();
void OnTimerStatus()
{ UpdateDisplay(); }
void OnTimerStatus() { UpdateDisplay(); }
void OnTimerPing();
void OnPingTimeResult ( int iPingTime );