mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 15:23:56 +02:00
Cleanup
This commit is contained in:
parent
60115752ad
commit
cf070e6e92
1 changed files with 1 additions and 1 deletions
|
@ -298,7 +298,7 @@ void setupPreferences() {
|
|||
{
|
||||
static const int MIN_PORT_NUMBER { 0 };
|
||||
static const int MAX_PORT_NUMBER { 65535 };
|
||||
auto getter = [nodelist] { qWarning() << "vladest: port" << static_cast<int>(nodelist->getSocketLocalPort()); return static_cast<int>(nodelist->getSocketLocalPort()); };
|
||||
auto getter = [nodelist] { return static_cast<int>(nodelist->getSocketLocalPort()); };
|
||||
auto setter = [nodelist](int preset) { nodelist->setSocketLocalPort(static_cast<quint16>(preset)); };
|
||||
auto preference = new IntSpinnerPreference(NETWORKING, "Listening Port", getter, setter);
|
||||
preference->setMin(MIN_PORT_NUMBER);
|
||||
|
|
Loading…
Reference in a new issue