X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fcoresettings.h;h=775d88e9fd713a3dcb92e817e32e7fe15bcb7bb3;hp=749c8ec12849a89feb48ea4c012a507d712a591f;hb=a1d785ae12b3ec04b43e243f3397bb6f8ecf60d5;hpb=0c9cd0eef379e1d3e10a75cc8506a7e65f95fd67 diff --git a/src/core/coresettings.h b/src/core/coresettings.h index 749c8ec1..775d88e9 100644 --- a/src/core/coresettings.h +++ b/src/core/coresettings.h @@ -36,7 +36,7 @@ class CoreSettings : public Settings { QVariant oldDbSettings(); // FIXME remove void setPort(const uint &port); - uint port(const uint &def = Global::defaultPort); + uint port(const uint &def = Global::parser.value("port").toUInt()); void setCoreState(const QVariant &data); QVariant coreState(const QVariant &def = QVariant());