diff options
| author | Sebastien Braun | 2010-10-11 12:27:27 +0200 |
|---|---|---|
| committer | Sebastien Braun | 2010-10-11 12:27:27 +0200 |
| commit | bcaa6e3580f5b227ab48693192c459cc72c30224 (patch) | |
| tree | be40c6908e375a0d31cbb77a9b82f6b39a728063 /src/input/pvsprivinputd.cpp | |
| parent | Log unmatched events in pvsprivinputd, too. (diff) | |
| download | pvs-bcaa6e3580f5b227ab48693192c459cc72c30224.tar.gz pvs-bcaa6e3580f5b227ab48693192c459cc72c30224.tar.xz pvs-bcaa6e3580f5b227ab48693192c459cc72c30224.zip | |
Better error handling for PVSPrivInputHandler
Diffstat (limited to 'src/input/pvsprivinputd.cpp')
| -rw-r--r-- | src/input/pvsprivinputd.cpp | 4 |
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) |
