#134 When adding server without port in address, use defaults 6697 if SSL is checked, 6667 if not.

master
Tomatix 3 years ago
parent 9185893037
commit ff81cabbb3
  1. 4
      IConfig/ServerModel.cpp

@ -20,8 +20,8 @@ QJsonObject createJsonObject(const QString& name, const QString& address, const
const auto hostport{ address.split(':') };
const auto host{ hostport[0] };
const auto port{ hostport.count() > 1 ? hostport[1].toShort() : 6667 };
const auto port{ hostport.count() > 1 ? hostport[1].toShort()
: (isSsl ? 6697 : 6667) };
QJsonObject obj;
obj[Key::Name] = name;

Loading…
Cancel
Save