diff -r a8970859f50e -r 08ed55ea1e2a QTfrontend/netserver.cpp --- a/QTfrontend/netserver.cpp Sat Dec 15 22:57:22 2007 +0000 +++ b/QTfrontend/netserver.cpp Sat Dec 15 23:24:43 2007 +0000 @@ -25,18 +25,15 @@ extern char delimeter; -void HWNetServer::StartServer(quint16 port) +bool HWNetServer::StartServer(quint16 port) { ds_port = port; hhnum=0; IPCServer = new QTcpServer(this); - if (!IPCServer->listen(QHostAddress::Any, ds_port)) { - QMessageBox::critical(0, tr("Error"), - tr("Unable to start the server: %1.") - .arg(IPCServer->errorString())); - } connect(IPCServer, SIGNAL(newConnection()), this, SLOT(NewConnection())); + + return IPCServer->listen(QHostAddress::Any, ds_port); } void HWNetServer::StopServer()