minor improvements

This commit is contained in:
Max-Wilhelm Bruker
2009-04-08 21:49:16 +02:00
parent a429a4a004
commit 792a400a3d
30 changed files with 1022 additions and 829 deletions

View File

@@ -20,14 +20,18 @@
#include <QCoreApplication>
#include "testserver.h"
#include "server.h"
int main(int argc, char *argv[])
{
QCoreApplication app(argc, argv);
TestServer server;
server.listen(QHostAddress::Any, 4747);
QCoreApplication app(argc, argv);
return app.exec();
Server server;
if (!server.openDatabase()) {
qCritical("Database error");
return -1;
}
server.listen(QHostAddress::Any, 4747);
return app.exec();
}