Сделал очищение списков Задач при деавторизации

This commit is contained in:
krivoshein
2025-01-23 12:22:31 +03:00
parent 6a86ae9909
commit 7fc2252a38
3 changed files with 19 additions and 1 deletions

View File

@@ -172,7 +172,7 @@ void InstructorsAndTraineesWidget::checkLoginResult(ServerAuthorization *serverA
updateLabelLoggedInInstructor(serverAuth->Login, serverAuth->ClientName);
connectorToServer->setLoginName(nameInstructorLoggedInLocal);
QMessageBox::information(this, tr("Instructor authorization"), tr("Successfully!"));
//QMessageBox::information(this, tr("Instructor authorization"), tr("Successfully!"));
}
else
{
@@ -228,6 +228,9 @@ void InstructorsAndTraineesWidget::slot_ConnectedToServer(bool state)
viewerTrainees->clearTree();
viewerInstructors->clearTree();
ammTasksWidget->clearTree();
fimTasksWidget->clearTree();
}
}
@@ -304,6 +307,9 @@ void InstructorsAndTraineesWidget::on_btnAuthorizationInstructor_clicked()
viewerTrainees->clearTree();
viewerInstructors->clearTree();
ammTasksWidget->clearTree();
fimTasksWidget->clearTree();
}
else
ui->btnAuthorizationInstructor->setChecked(true);