Общий перевод. SpecMsgBox

This commit is contained in:
2025-12-16 15:13:37 +03:00
parent a641194b29
commit d1df6a2a05
8 changed files with 29 additions and 22 deletions

View File

@@ -5,6 +5,7 @@
#include "ui_dialogsettingstray.h"
#include "dialogcheckdb.h"
#include "dialogauthorization.h"
#include "specialmessagebox.h"
DialogSettingsTray::DialogSettingsTray(ProviderDBLMS* providerDBLMS, QWidget *parent) :
QDialog(parent),
@@ -290,7 +291,7 @@ void DialogSettingsTray::on_btnCheckDB_clicked()
//Проверяем, установлен ли PostgreSQL
if(!providerDBLMS->checkDriverQPSQLavailable())
{
QMessageBox::critical(this, tr("Error!"), tr("Driver PostgreSQL is not installed!"));
SpecMsgBox::CriticalClose(this, tr("Driver PostgreSQL is not installed!"));
return;
}
@@ -340,12 +341,12 @@ void DialogSettingsTray::on_btnCheckDB_clicked()
else
{
if(settings->HostName == "localhost")
QMessageBox::critical(this, tr("Error!"), tr("Error connecting to PostgreSQL!") + "\n\n" +
SpecMsgBox::CriticalClose(this, tr("Error connecting to PostgreSQL!") + "\n\n" +
tr("Possible reasons:") + "\n" +
tr("*superuser PostgreSQL login or password is incorrect;") + "\n" +
tr("*Port is incorrect."));
else
QMessageBox::critical(this, tr("Error!"), tr("Error connecting to PostgreSQL!") + "\n\n" +
SpecMsgBox::CriticalClose(this, tr("Error connecting to PostgreSQL!") + "\n\n" +
tr("Possible reasons:") + "\n" +
tr("*superuser PostgreSQL login or password is incorrect;") + "\n" +
tr("*Port is incorrect;") + "\n" +