Skip to content

Commit

Permalink
fix: 修复小米手机mtp挂载拖拽文件到zip压缩文件添加失败问题
Browse files Browse the repository at this point in the history
修复小米手机mtp挂载拖拽文件到zip压缩文件添加失败问题

Bug: https://pms.uniontech.com/bug-view-200113.html
Log: 修复小米手机mtp挂载拖拽文件到zip压缩文件添加失败问题
  • Loading branch information
myk1343 committed Feb 4, 2024
1 parent 159b96a commit fcee47e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions 3rdparty/interface/archiveinterface/cliinterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,7 @@ PluginFinishType CliInterface::addFiles(const QList<FileEntry> &files, const Com
args_list << m_strArchiveName << temp_archiveName;
QProcess mover;
ret = 0 == mover.execute("mv",args_list);
mover.waitForFinished();
ret = mover.exitCode() == QProcess::NormalExit;
if (!ret) {
qInfo() << "建立临时文件失败!";
Expand Down Expand Up @@ -434,6 +435,7 @@ PluginFinishType CliInterface::addFiles(const QList<FileEntry> &files, const Com
qInfo()<< "mtp 压缩完成,现在开始移动";
QStringList args_list;
args_list<< temp_archiveName << m_strArchiveName;
m_process->waitForFinished();
QProcess mover;
ret = 0 == mover.execute("mv",args_list);
ret = mover.exitCode() == QProcess::NormalExit;
Expand Down

0 comments on commit fcee47e

Please sign in to comment.