Fixed: Create directory before trying to create a client.cfg

This commit is contained in:
kervala 2016-10-10 18:53:39 +02:00
parent 24e8cd252b
commit 912df8daad

View file

@ -145,6 +145,9 @@ bool CProfile::createClientConfig() const
QString directory = getDirectory(); QString directory = getDirectory();
QString filename = directory + "/client.cfg"; QString filename = directory + "/client.cfg";
// create directory
QDir().mkpath(directory);
const CServer &s = CConfigFile::getInstance()->getServer(server); const CServer &s = CConfigFile::getInstance()->getServer(server);
// create the 2 initial lines of client.cfg // create the 2 initial lines of client.cfg