1
0
Fork 0

create config dir instead of complaining it doesn't exist

Esse commit está contido em:
Albert S. 2019-08-24 09:41:07 +02:00
commit 1284519280
1 arquivos alterados com 5 adições e 2 exclusões

Ver arquivo

@ -44,8 +44,11 @@ int main(int argc, char *argv[])
QDir dir;
if(!dir.exists(configDirectoryPath))
{
QMessageBox::warning(nullptr, "Directory not found", configDirectoryPath + " was not found!");
return 1;
if(!dir.mkdir(configDirectoryPath))
{
QMessageBox::warning(nullptr, "Failed to create dir", configDirectoryPath + " was not found and could not be created!");
return 1;
}
}
QSettings settings(configDirectoryPath + "qsrun.config", QSettings::NativeFormat);