mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Ensure we set the fixed port options properly when configuring following an error.
This commit is contained in:
parent
406ada10f5
commit
08cf2c8310
@ -311,18 +311,24 @@ int main(int argc, char * argv[])
|
|||||||
ConfigWindow *dlg = new ConfigWindow();
|
ConfigWindow *dlg = new ConfigWindow();
|
||||||
dlg->setWindowTitle(QWidget::tr("Configuration"));
|
dlg->setWindowTitle(QWidget::tr("Configuration"));
|
||||||
dlg->setBrowserCommand(settings.value("BrowserCommand").toString());
|
dlg->setBrowserCommand(settings.value("BrowserCommand").toString());
|
||||||
|
dlg->setFixedPort(settings.value("FixedPort").toBool());
|
||||||
|
dlg->setPortNumber(settings.value("PortNumber").toInt());
|
||||||
dlg->setPythonPath(settings.value("PythonPath").toString());
|
dlg->setPythonPath(settings.value("PythonPath").toString());
|
||||||
dlg->setApplicationPath(settings.value("ApplicationPath").toString());
|
dlg->setApplicationPath(settings.value("ApplicationPath").toString());
|
||||||
dlg->setModal(true);
|
dlg->setModal(true);
|
||||||
ok = dlg->exec();
|
ok = dlg->exec();
|
||||||
|
|
||||||
QString browsercommand = dlg->getBrowserCommand();
|
QString browsercommand = dlg->getBrowserCommand();
|
||||||
|
bool fixedport = dlg->getFixedPort();
|
||||||
|
int portnumber = dlg->getPortNumber();
|
||||||
QString pythonpath = dlg->getPythonPath();
|
QString pythonpath = dlg->getPythonPath();
|
||||||
QString applicationpath = dlg->getApplicationPath();
|
QString applicationpath = dlg->getApplicationPath();
|
||||||
|
|
||||||
if (ok)
|
if (ok)
|
||||||
{
|
{
|
||||||
settings.setValue("BrowserCommand", browsercommand);
|
settings.setValue("BrowserCommand", browsercommand);
|
||||||
|
settings.setValue("FixedPort", fixedport);
|
||||||
|
settings.setValue("PortNumber", portnumber);
|
||||||
settings.setValue("PythonPath", pythonpath);
|
settings.setValue("PythonPath", pythonpath);
|
||||||
settings.setValue("ApplicationPath", applicationpath);
|
settings.setValue("ApplicationPath", applicationpath);
|
||||||
settings.sync();
|
settings.sync();
|
||||||
|
Loading…
Reference in New Issue
Block a user