Use 0 for 'Dynamic' setting

This commit is contained in:
craig.p.drummond
2013-03-19 19:29:54 +00:00
committed by craig.p.drummond
parent da3ccb81d9
commit 77e030b2e3
6 changed files with 14 additions and 14 deletions

View File

@@ -40,7 +40,7 @@ void HttpServerSettings::load()
int port=Settings::self()->httpPort();
enableHttp->setChecked(Settings::self()->enableHttp());
alwaysUseHttp->setChecked(Settings::self()->alwaysUseHttp());
httpPort->setValue(port<1024 ? 1023 : port);
httpPort->setValue(port);
httpAddress->setText(Settings::self()->httpAddress());
}
@@ -50,6 +50,7 @@ void HttpServerSettings::save()
Settings::self()->saveAlwaysUseHttp(alwaysUseHttp->isChecked());
Settings::self()->saveHttpPort(httpPort->value());
Settings::self()->saveHttpAddress(httpAddress->text());
HttpServer::self()->readConfig();
QTimer::singleShot(250, this, SLOT(updateStatus()));
}