QTfrontend/newnetclient.cpp
changeset 2334 3cf9290a518e
parent 2155 d897222d3339
child 2335 0a61a3c2efc4
equal deleted inserted replaced
2333:f53a208e9637 2334:3cf9290a518e
    64 	NetSocket.flush();
    64 	NetSocket.flush();
    65 }
    65 }
    66 
    66 
    67 void HWNewNet::Connect(const QString & hostName, quint16 port, const QString & nick)
    67 void HWNewNet::Connect(const QString & hostName, quint16 port, const QString & nick)
    68 {
    68 {
    69 	mynick = nick;
    69 	mynick = nick.isEmpty() ? QLineEdit::tr("unnamed") : nick;
    70 	NetSocket.connectToHost(hostName, port);
    70 	NetSocket.connectToHost(hostName, port);
    71 }
    71 }
    72 
    72 
    73 void HWNewNet::Disconnect()
    73 void HWNewNet::Disconnect()
    74 {
    74 {