summaryrefslogtreecommitdiffstats
path: root/resource/main.cpp
diff options
context:
space:
mode:
authorAaron Seigo <aseigo@kde.org>2014-11-21 13:19:17 +0100
committerAaron Seigo <aseigo@kde.org>2014-11-21 13:19:17 +0100
commit58776c2732a5005cfa2939f25b7b235d8e3344af (patch)
tree3db8415d9732c8baf9e02e85eaa7b43d5bc87394 /resource/main.cpp
parentc52b181c3382a754b10f0457763e0364463592ad (diff)
downloadsink-58776c2732a5005cfa2939f25b7b235d8e3344af.tar.gz
sink-58776c2732a5005cfa2939f25b7b235d8e3344af.zip
when we have no more clients, quit
Diffstat (limited to 'resource/main.cpp')
-rw-r--r--resource/main.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/resource/main.cpp b/resource/main.cpp
index 3bd4656..6835a18 100644
--- a/resource/main.cpp
+++ b/resource/main.cpp
@@ -18,6 +18,8 @@ int main(int argc, char *argv[])
18 18
19 QObject::connect(&app, &QCoreApplication::aboutToQuit, 19 QObject::connect(&app, &QCoreApplication::aboutToQuit,
20 listener, &Listener::closeAllConnections); 20 listener, &Listener::closeAllConnections);
21 QObject::connect(listener, &Listener::noClients,
22 &app, &QCoreApplication::quit);
21 23
22 return app.exec(); 24 return app.exec();
23} \ No newline at end of file 25} \ No newline at end of file