mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-01-15 01:07:27 -05: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>
|
#include <sys/socket.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
class MainWindow;
|
|
||||||
#if defined(Q_OS_UNIX) && !defined(Q_OS_OSX)
|
#if defined(Q_OS_UNIX) && !defined(Q_OS_OSX)
|
||||||
class XcbEventFilter : public QAbstractNativeEventFilter
|
class XcbEventFilter : public QAbstractNativeEventFilter
|
||||||
{
|
{
|
||||||
@ -156,6 +155,7 @@ void Application::handleUnixSignal(int sig)
|
|||||||
|
|
||||||
void Application::quitBySignal()
|
void Application::quitBySignal()
|
||||||
{
|
{
|
||||||
|
m_unixSignalNotifier->setEnabled(false);
|
||||||
char buf;
|
char buf;
|
||||||
::read(unixSignalSocket[1], &buf, sizeof(buf));
|
::read(unixSignalSocket[1], &buf, sizeof(buf));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user