diff options
author | Petr Mrázek <peterix@gmail.com> | 2016-10-30 10:27:18 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2016-10-30 14:47:16 +0100 |
commit | a36c962a314165bc94aa8b117fff7c452c9fdfe4 (patch) | |
tree | d00cb02abf93ec1a7079c73faed1efcd64acd00a | |
parent | e9949e3a54bcb95037e6f2587e0ff1ccd1c20628 (diff) | |
download | MultiMC-a36c962a314165bc94aa8b117fff7c452c9fdfe4.tar MultiMC-a36c962a314165bc94aa8b117fff7c452c9fdfe4.tar.gz MultiMC-a36c962a314165bc94aa8b117fff7c452c9fdfe4.tar.lz MultiMC-a36c962a314165bc94aa8b117fff7c452c9fdfe4.tar.xz MultiMC-a36c962a314165bc94aa8b117fff7c452c9fdfe4.zip |
NOISSUE use current directory for application ID
Using QDir(dataPath).absolutePath() for the path
-rw-r--r-- | application/MultiMC.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/application/MultiMC.cpp b/application/MultiMC.cpp index a157fae0..af59d93c 100644 --- a/application/MultiMC.cpp +++ b/application/MultiMC.cpp @@ -189,7 +189,7 @@ MultiMC::MultiMC(int &argc, char **argv) : QApplication(argc, argv) m_status = MultiMC::Failed; return; } - auto appID = ApplicationId::fromPathAndVersion(QDir(dataPath).absolutePath(), BuildConfig.printableVersionString()); + auto appID = ApplicationId::fromPathAndVersion(QDir::currentPath(), BuildConfig.printableVersionString()); m_peerInstance = new LocalPeer(this, appID); connect(m_peerInstance, &LocalPeer::messageReceived, this, &MultiMC::messageReceived); if(m_peerInstance->isClient()) |