mirror of
https://github.com/clementine-player/Clementine
synced 2024-12-17 20:09:50 +01:00
Clean up a lockfile from /tmp on exit. Fixes #4348
This commit is contained in:
parent
ff5d23b288
commit
a6ac10093c
5
3rdparty/qtsingleapplication/qtlocalpeer.cpp
vendored
5
3rdparty/qtsingleapplication/qtlocalpeer.cpp
vendored
@ -209,3 +209,8 @@ void QtLocalPeer::receiveConnection()
|
|||||||
emit messageReceived(uMsg); //### (might take a long time to return)
|
emit messageReceived(uMsg); //### (might take a long time to return)
|
||||||
emit messageReceived(QString::fromUtf8(uMsg));
|
emit messageReceived(QString::fromUtf8(uMsg));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QtLocalPeer::~QtLocalPeer ()
|
||||||
|
{
|
||||||
|
lockFile.remove();
|
||||||
|
}
|
||||||
|
1
3rdparty/qtsingleapplication/qtlocalpeer.h
vendored
1
3rdparty/qtsingleapplication/qtlocalpeer.h
vendored
@ -57,6 +57,7 @@ class QtLocalPeer : public QObject
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
QtLocalPeer(QObject *parent = 0, const QString &appId = QString());
|
QtLocalPeer(QObject *parent = 0, const QString &appId = QString());
|
||||||
|
~QtLocalPeer ();
|
||||||
bool isClient();
|
bool isClient();
|
||||||
bool sendMessage(const QString &message, int timeout);
|
bool sendMessage(const QString &message, int timeout);
|
||||||
bool sendMessage(const QByteArray &message, int timeout);
|
bool sendMessage(const QByteArray &message, int timeout);
|
||||||
|
Loading…
Reference in New Issue
Block a user