diff --git a/domain-server/src/DomainServer.cpp b/domain-server/src/DomainServer.cpp index 022fb1f92d..c9864ef156 100644 --- a/domain-server/src/DomainServer.cpp +++ b/domain-server/src/DomainServer.cpp @@ -75,20 +75,6 @@ DomainServer::DomainServer(int argc, char* argv[]) : } } -bool DomainServer::nativeEventFilter(const QByteArray &eventType, void* msg, long* result) { -#ifdef Q_OS_WIN - if (eventType == "windows_generic_MSG") { - MSG* message = (MSG*)msg; - if (message->message == WM_CLOSE) { - qDebug() << "Received WM_CLOSE message, closing"; - quit(); - return false; - } - } -#endif - return true; -} - bool DomainServer::optionallyReadX509KeyAndCertificate() { const QString X509_CERTIFICATE_OPTION = "cert"; const QString X509_PRIVATE_KEY_OPTION = "key"; diff --git a/domain-server/src/DomainServer.h b/domain-server/src/DomainServer.h index 524f237c9d..10633cc71a 100644 --- a/domain-server/src/DomainServer.h +++ b/domain-server/src/DomainServer.h @@ -35,15 +35,13 @@ typedef QSharedPointer SharedAssignmentPointer; typedef QMultiHash TransactionHash; -class DomainServer : public QCoreApplication, public HTTPSRequestHandler, public QAbstractNativeEventFilter { +class DomainServer : public QCoreApplication, public HTTPSRequestHandler { Q_OBJECT public: DomainServer(int argc, char* argv[]); bool handleHTTPRequest(HTTPConnection* connection, const QUrl& url); bool handleHTTPSRequest(HTTPSConnection* connection, const QUrl& url); - - bool nativeEventFilter(const QByteArray &eventType, void* msg, long* result); void exit(int retCode = 0);