- Implementde server process termination from client UI
[qtrapids] / src / server / main.cpp
index 7c3ab9f..fbb1283 100644 (file)
@@ -15,5 +15,6 @@ int main(int argc, char *argv[])
 
        QCoreApplication app(argc, argv);
        TorrentSession server(&app, &settings);
+       QObject::connect(&server, SIGNAL(terminate()), &app, SLOT(quit()));
        return app.exec();
 }