summaryrefslogtreecommitdiffstats
path: root/application
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2016-10-30 03:45:41 +0100
committerPetr Mrázek <peterix@gmail.com>2016-10-30 03:45:41 +0100
commite9949e3a54bcb95037e6f2587e0ff1ccd1c20628 (patch)
tree28cca690616eb4b7996d5b308996b2d9d12e4f7f /application
parenta7178640132948cf046627e42c06a9c19e745e85 (diff)
downloadMultiMC-e9949e3a54bcb95037e6f2587e0ff1ccd1c20628.tar
MultiMC-e9949e3a54bcb95037e6f2587e0ff1ccd1c20628.tar.gz
MultiMC-e9949e3a54bcb95037e6f2587e0ff1ccd1c20628.tar.lz
MultiMC-e9949e3a54bcb95037e6f2587e0ff1ccd1c20628.tar.xz
MultiMC-e9949e3a54bcb95037e6f2587e0ff1ccd1c20628.zip
NOISSUE use absolute data path for application ID
Diffstat (limited to 'application')
-rw-r--r--application/MultiMC.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/application/MultiMC.cpp b/application/MultiMC.cpp
index f3933620..a157fae0 100644
--- a/application/MultiMC.cpp
+++ b/application/MultiMC.cpp
@@ -189,7 +189,8 @@ MultiMC::MultiMC(int &argc, char **argv) : QApplication(argc, argv)
m_status = MultiMC::Failed;
return;
}
- m_peerInstance = new LocalPeer(this, ApplicationId::fromPathAndVersion(dataPath, BuildConfig.printableVersionString()));
+ auto appID = ApplicationId::fromPathAndVersion(QDir(dataPath).absolutePath(), BuildConfig.printableVersionString());
+ m_peerInstance = new LocalPeer(this, appID);
connect(m_peerInstance, &LocalPeer::messageReceived, this, &MultiMC::messageReceived);
if(m_peerInstance->isClient())
{