Skip to content

Commit 0516eb4

Browse files
committed
Move clearing of ping and delay to Disconnect()
1 parent d43532b commit 0516eb4

1 file changed

Lines changed: 6 additions & 8 deletions

File tree

src/clientdlg.cpp

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1253,6 +1253,12 @@ OnTimerStatus();
12531253
ledBuffers->Reset();
12541254
ledDelay->Reset();
12551255

1256+
// clear text labels with client parameters
1257+
lblPingVal->setText ( "---" );
1258+
lblPingUnit->setText ( "" );
1259+
lblDelayVal->setText ( "---" );
1260+
lblDelayUnit->setText ( "" );
1261+
12561262
// clear mixer board (remove all faders)
12571263
MainMixerBoard->HideAll();
12581264
}
@@ -1285,14 +1291,6 @@ void CClientDlg::UpdateDisplay()
12851291
chbChat->setChecked ( true );
12861292
chbChat->blockSignals ( false );
12871293
}
1288-
if ( !pClient->IsRunning() )
1289-
{
1290-
// clear text labels with client parameters
1291-
lblPingVal->setText ( "---" );
1292-
lblPingUnit->setText ( "" );
1293-
lblDelayVal->setText ( "---" );
1294-
lblDelayUnit->setText ( "" );
1295-
}
12961294
}
12971295

12981296
void CClientDlg::SetGUIDesign ( const EGUIDesign eNewDesign )

0 commit comments

Comments
 (0)