mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-28 19:55:48 +03:00
Рефакт Администрирование БД 3
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user