Рефакт Администрирование БД 3

This commit is contained in:
2025-11-06 16:46:41 +03:00
parent 2d91b18bfb
commit 2d1e17627b
11 changed files with 308 additions and 184 deletions

View File

@@ -81,6 +81,7 @@ void DialogCheckDB::on_btnRepare_clicked()
if(!resDriver)
{
QMessageBox::critical(this, tr("Error!"), tr("Install PostgreSQL."));
this->reject();
return;
}
@@ -88,8 +89,9 @@ void DialogCheckDB::on_btnRepare_clicked()
{
if(!providerDBLMS->createUser())
{
QMessageBox::critical(this, tr("Error!"), tr("Failed to create user!"));
check();
QMessageBox::critical(this, tr("Error!"), tr("Failed to create user!"));
this->reject();
return;
}
}
@@ -98,8 +100,9 @@ void DialogCheckDB::on_btnRepare_clicked()
{
if(!providerDBLMS->createDB())
{
QMessageBox::critical(this, tr("Error!"), tr("Failed to create Database!"));
check();
QMessageBox::critical(this, tr("Error!"), tr("Failed to create Database!"));
this->reject();
return;
}
}