create config dir instead of complaining it doesn't exist
这个提交包含在:
父节点
6c67c11481
当前提交
1284519280
7
main.cpp
7
main.cpp
@ -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);
|
||||
|
正在加载...
在新工单中引用
屏蔽一个用户