Remove obsolete forward-declaration and disable QSocketNotifier after firing

This commit is contained in:
Janek Bevendorff 2017-01-18 00:39:36 +01:00
parent b5cf6c7161
commit 4eb39dc5ff
No known key found for this signature in database
GPG Key ID: CFEC2F6850BFFA53

View File

@ -31,7 +31,6 @@
#include <sys/socket.h>
#endif
class MainWindow;
#if defined(Q_OS_UNIX) && !defined(Q_OS_OSX)
class XcbEventFilter : public QAbstractNativeEventFilter
{
@ -156,6 +155,7 @@ void Application::handleUnixSignal(int sig)
void Application::quitBySignal()
{
m_unixSignalNotifier->setEnabled(false);
char buf;
::read(unixSignalSocket[1], &buf, sizeof(buf));