mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
Remove obsolete forward-declaration and disable QSocketNotifier after firing
This commit is contained in:
parent
b5cf6c7161
commit
4eb39dc5ff
@ -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));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user