summaryrefslogtreecommitdiffstats
path: root/src/input/pvsprivinputd.cpp
diff options
context:
space:
mode:
authorSebastien Braun2010-11-04 00:38:24 +0100
committerSebastien Braun2010-11-04 00:38:24 +0100
commit4fcc0efae9738bb28922da592fff78cfef50277b (patch)
treeb3855b36abe874606a802ec75fc573543d2d7b35 /src/input/pvsprivinputd.cpp
parent[PVSMGRTOUCH] resetall bug fixed (diff)
parentDocumentation fixes and code cleanup (diff)
downloadpvs-4fcc0efae9738bb28922da592fff78cfef50277b.tar.gz
pvs-4fcc0efae9738bb28922da592fff78cfef50277b.tar.xz
pvs-4fcc0efae9738bb28922da592fff78cfef50277b.zip
Merge input handling work to master
Diffstat (limited to 'src/input/pvsprivinputd.cpp')
-rw-r--r--src/input/pvsprivinputd.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/input/pvsprivinputd.cpp b/src/input/pvsprivinputd.cpp
index e6ae155..df3acfc 100644
--- a/src/input/pvsprivinputd.cpp
+++ b/src/input/pvsprivinputd.cpp
@@ -182,7 +182,9 @@ int main(int argc, char** argv)
}
// Install our main object
- PVSPrivInputHandler handler(sock);
+ PVSPrivInputHandler* handler = new PVSPrivInputHandler(sock, &app);
+ // When the handler gets deleted, we want to quit the application
+ QObject::connect(handler, SIGNAL(destroyed(QObject*)), &app, SLOT(quit()));
// set up signal handling:
if(socketpair(AF_UNIX, SOCK_DGRAM, 0, signalFds) < 0)