mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-28 19:55:48 +03:00
refact 2
This commit is contained in:
@@ -23,7 +23,8 @@ DialogSettingsTray::DialogSettingsTray(ProviderDBLMS* providerDBLMS, QWidget *pa
|
||||
|
||||
#ifndef PROJECT_TYPE_DEBUG
|
||||
ui->checkLocalhost->setEnabled(false);
|
||||
#endif
|
||||
ui->btnUpdateDocs->setVisible(false);
|
||||
#endif
|
||||
|
||||
/* Создаем строку для регулярного выражения */
|
||||
QString ipRange = "(?:[0-1]?[0-9]?[0-9]|2[0-4][0-9]|25[0-5])";
|
||||
@@ -333,6 +334,7 @@ void DialogSettingsTray::on_btnCheckDB_clicked()
|
||||
case QDialog::Accepted:
|
||||
ui->btnSave->setEnabled(true);
|
||||
flSettingsServerChanged = true;
|
||||
on_btnSave_clicked();
|
||||
break;
|
||||
case QDialog::Rejected:
|
||||
break;
|
||||
@@ -345,17 +347,17 @@ void DialogSettingsTray::on_btnCheckDB_clicked()
|
||||
if(settings->HostName == "localhost")
|
||||
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" +
|
||||
tr("PostgreSQL is not installed.")
|
||||
"- " + tr("superuser PostgreSQL login or password is incorrect;") + "\n" +
|
||||
"- " + tr("port is incorrect;") + "\n" +
|
||||
"- " + tr("PostgreSQL is not installed.")
|
||||
);
|
||||
else
|
||||
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" +
|
||||
tr("file 'pg_hba.conf' does not contain an entry for the IP address:") + settings->HostName + ";" + "\n" +
|
||||
tr("PostgreSQL is not installed.")
|
||||
"- " + tr("superuser PostgreSQL login or password is incorrect;") + "\n" +
|
||||
"- " + tr("port is incorrect;") + "\n" +
|
||||
"- " + tr("file 'pg_hba.conf' does not contain an entry for the IP address:") + settings->HostName + ";" + "\n" +
|
||||
"- " + tr("PostgreSQL is not installed.")
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user