diff options
| author | Al <gabriel.cortesi@outlook.com> | 2019-02-16 13:02:52 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-02-16 13:02:52 +0100 |
| commit | c19ba153376f5d8f4026a46701bb0f7c115c1651 (patch) | |
| tree | ded30b62149b6f009a5881695738de589357511e /src | |
| parent | 4b98a3f5b69aad5e5be47748407570c9c9b6c107 (diff) | |
| parent | 02c5b083dca693dcb3880bab7ce4ca022cdfc02f (diff) | |
Merge pull request #653 from przester/instance-fix
Fix instance errors when downloading the same file multiple times
Diffstat (limited to 'src')
| -rw-r--r-- | src/singleinstance.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/singleinstance.cpp b/src/singleinstance.cpp index 89332f9b..7abf3879 100644 --- a/src/singleinstance.cpp +++ b/src/singleinstance.cpp @@ -54,7 +54,7 @@ SingleInstance::SingleInstance(bool forcePrimary, QObject *parent) : m_PrimaryInstance = true;
}
if (m_PrimaryInstance) {
- connect(&m_Server, SIGNAL(newConnection()), this, SLOT(receiveMessage()));
+ connect(&m_Server, SIGNAL(newConnection()), this, SLOT(receiveMessage()), Qt::QueuedConnection);
// has to be called before listen
m_Server.setSocketOptions(QLocalServer::WorldAccessOption);
m_Server.listen(s_Key);
|
