NOISSUE use current directory for application ID

Using QDir(dataPath).absolutePath() for the path
This commit is contained in:
Petr Mrázek 2016-10-30 10:27:18 +01:00
parent e9949e3a54
commit a36c962a31

View File

@ -189,7 +189,7 @@ MultiMC::MultiMC(int &argc, char **argv) : QApplication(argc, argv)
m_status = MultiMC::Failed; m_status = MultiMC::Failed;
return; return;
} }
auto appID = ApplicationId::fromPathAndVersion(QDir(dataPath).absolutePath(), BuildConfig.printableVersionString()); auto appID = ApplicationId::fromPathAndVersion(QDir::currentPath(), BuildConfig.printableVersionString());
m_peerInstance = new LocalPeer(this, appID); m_peerInstance = new LocalPeer(this, appID);
connect(m_peerInstance, &LocalPeer::messageReceived, this, &MultiMC::messageReceived); connect(m_peerInstance, &LocalPeer::messageReceived, this, &MultiMC::messageReceived);
if(m_peerInstance->isClient()) if(m_peerInstance->isClient())