summaryrefslogtreecommitdiff
path: root/src/singleinstance.cpp
diff options
context:
space:
mode:
authorKrzysztof Starecki <krzysztof.starecki@gmail.com>2019-02-15 17:07:43 +0100
committerKrzysztof Starecki <krzysztof.starecki@gmail.com>2019-02-15 17:07:43 +0100
commit02c5b083dca693dcb3880bab7ce4ca022cdfc02f (patch)
tree1e3a5e52b565f030fe1d7050ba9483f43810ab39 /src/singleinstance.cpp
parent4d8920cec1f35e502c653e1b5725a49a4d321626 (diff)
Fix instance errors when downloading the same file multiple times
Diffstat (limited to 'src/singleinstance.cpp')
-rw-r--r--src/singleinstance.cpp2
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);