This commit is contained in:
2025-11-30 23:12:00 +03:00
parent 54f1744e7f
commit df1ada6945
4 changed files with 8 additions and 11 deletions

View File

@@ -387,7 +387,7 @@ void InstructorsAndTraineesWidget::slot_ConnectedToServer(bool state)
if(cntTryConnectToServer < 10)
{
cntTryConnectToServer++;
QTimer::singleShot(1000, this, SLOT(slot_ConnectToServer()));
QTimer::singleShot(1000, this, SLOT(slot_TryConnectToServer()));
}
else
{
@@ -460,7 +460,7 @@ void InstructorsAndTraineesWidget::slot_AnswerDocsChanged()
viewerTrainees->getAmmTasksWidgetCommon()->setDocsActualed(false);
}
void InstructorsAndTraineesWidget::slot_ConnectToServer()
void InstructorsAndTraineesWidget::slot_TryConnectToServer()
{
updateLabelServer();
connectorToServer->SetConnectToServer();
@@ -540,7 +540,7 @@ void InstructorsAndTraineesWidget::on_btnConnectionToServer_clicked()
updateLabelServer();
QTimer::singleShot(1000, this, SLOT(slot_ConnectToServer()));
QTimer::singleShot(1000, this, SLOT(slot_TryConnectToServer()));
}
void InstructorsAndTraineesWidget::on_btnAuthorizationInstructor_clicked()