mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-28 19:55:48 +03:00
Общий перевод. SpecMsgBox
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#include <QMessageBox>
|
||||
#include <QProcess>
|
||||
#include <QFile>
|
||||
#include "specialmessagebox.h"
|
||||
#include "dialogcheckdb.h"
|
||||
#include "ui_dialogcheckdb.h"
|
||||
|
||||
@@ -80,7 +81,7 @@ void DialogCheckDB::on_btnRepare_clicked()
|
||||
{
|
||||
if(!resDriver)
|
||||
{
|
||||
QMessageBox::critical(this, tr("Error!"), tr("Install PostgreSQL."));
|
||||
SpecMsgBox::CriticalClose(this, tr("Install PostgreSQL."));
|
||||
this->reject();
|
||||
return;
|
||||
}
|
||||
@@ -90,7 +91,7 @@ void DialogCheckDB::on_btnRepare_clicked()
|
||||
if(!providerDBLMS->createUser())
|
||||
{
|
||||
check();
|
||||
QMessageBox::critical(this, tr("Error!"), tr("Failed to create user!"));
|
||||
SpecMsgBox::CriticalClose(this, tr("Failed to create user!"));
|
||||
this->reject();
|
||||
return;
|
||||
}
|
||||
@@ -101,7 +102,7 @@ void DialogCheckDB::on_btnRepare_clicked()
|
||||
if(!providerDBLMS->createDB())
|
||||
{
|
||||
check();
|
||||
QMessageBox::critical(this, tr("Error!"), tr("Failed to create Database!"));
|
||||
SpecMsgBox::CriticalClose(this, tr("Failed to create Database!"));
|
||||
this->reject();
|
||||
return;
|
||||
}
|
||||
@@ -111,7 +112,7 @@ void DialogCheckDB::on_btnRepare_clicked()
|
||||
|
||||
if(resDriver && resUser && resDB)
|
||||
{
|
||||
QMessageBox::information(this, tr("Completed!"), tr("The database has been successfully restored!"));
|
||||
SpecMsgBox::InfoOk(this, tr("The database has been successfully restored!"));
|
||||
this->accept();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user