mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-10 01:09:50 +00:00
Fixed: Create directory before trying to create a client.cfg
This commit is contained in:
parent
1a9cd3bdd3
commit
aaf1b2baf3
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue