This commit is contained in:
2026-01-20 17:11:01 +03:00
parent e7e719bc84
commit fe75f2c6ca
4 changed files with 14 additions and 10 deletions

View File

@@ -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;
}