mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-28 19:55:48 +03:00
refact ui
This commit is contained in:
@@ -300,6 +300,7 @@ void DialogSettingsTray::on_btnCheckDB_clicked()
|
||||
QString PasswordPostgres;
|
||||
|
||||
DialogAuthorization dlg(this);
|
||||
dlg.setWindowIcon(QIcon(QStringLiteral(":/resources/icons/PngServerRRJ.png")));
|
||||
dlg.setWindowTitle(tr("Superuser PostgreSQL authorization"));
|
||||
dlg.setWindowFlags(dlg.windowFlags() & ~Qt::WindowContextHelpButtonHint);
|
||||
dlg.setStyleSheet(this->styleSheet());
|
||||
@@ -343,14 +344,18 @@ 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."));
|
||||
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 + ".");
|
||||
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