diff --git a/src/app/qtlocalpeer/qtlocalpeer.h b/src/app/qtlocalpeer/qtlocalpeer.h index 9dd1cc395..2969bf2d3 100644 --- a/src/app/qtlocalpeer/qtlocalpeer.h +++ b/src/app/qtlocalpeer/qtlocalpeer.h @@ -69,10 +69,8 @@ #pragma once #include - -#include "qtlockedfile.h" - -class QLocalServer; +#include +#include class QtLocalPeer final : public QObject { @@ -94,6 +92,6 @@ private slots: private: QString m_socketName; - QLocalServer *m_server = nullptr; - QtLP_Private::QtLockedFile m_lockFile; + QLocalServer *m_server = new QLocalServer(this); + QLockFile m_lockFile; };