PSQL 02.11.2024

This commit is contained in:
krivoshein
2024-11-02 13:43:57 +03:00
parent 9422c5e257
commit 0f1fa71c33
76 changed files with 576 additions and 493 deletions

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorProject>
<!-- Written by QtCreator 4.11.1, 2024-11-01T11:44:20. -->
<!-- Written by QtCreator 4.11.1, 2024-11-02T13:43:21. -->
<qtcreator>
<data>
<variable>EnvironmentId</variable>

View File

@@ -5,7 +5,15 @@
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
MainWindow w;
w.show();
return a.exec();
try
{
MainWindow w;
w.show();
return a.exec();
}
catch( const std::exception& e )
{
return 1;
}
}

View File

@@ -12,6 +12,13 @@ MainWindow::MainWindow(QWidget *parent)
ui->setupUi(this);
m_instructorsAndTraineesWidget = new InstructorsAndTraineesWidget(this);
if(! m_instructorsAndTraineesWidget->authorizationCompleted())
{
delete m_instructorsAndTraineesWidget;
delete ui;
throw(std::exception());
}
ui->horizontalLayout->addWidget(m_instructorsAndTraineesWidget);
this->move(0, 0);