NOISSUE use absolute data path for application ID

This commit is contained in:
Petr Mrázek 2016-10-30 03:45:41 +01:00
parent a717864013
commit e9949e3a54

View File

@ -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())
{