覆盖拷贝配置文件到本地
This commit is contained in:
parent
9aa6a96434
commit
57f5ddd9b1
|
@ -53,6 +53,9 @@ void Dialog_uploadCfgFile::on_pbtn_upload_clicked()
|
|||
strcat(cfgPath, ".json");
|
||||
|
||||
QFile file(filename);
|
||||
QFile file2(cfgPath);
|
||||
if (file2.exists())
|
||||
file2.remove();
|
||||
file.copy(filename, cfgPath);
|
||||
|
||||
HGResult ret = HGPdtToolDb_UploadFile(m_pdtToolDbuserMgr, tag.toStdString().c_str(), getStdString(filename).c_str());
|
||||
|
|
Loading…
Reference in New Issue