Skip to content

Commit

Permalink
fix: 压缩本地快捷方式指向网络路径时,本地文件不允许拖拽到压缩快捷方式追加文件
Browse files Browse the repository at this point in the history
压缩本地快捷方式指向网络路径时,本地文件不允许拖拽到压缩快捷方式追加文件

Bug: https://pms.uniontech.com/bug-view-276309.html
Log: 压缩本地快捷方式指向网络路径时,本地文件不允许拖拽到压缩快捷方式追加文件
  • Loading branch information
myk1343 committed Oct 10, 2024
1 parent 05f6d3c commit 4b04070
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,14 @@ int main(int argc, char *argv[])
if (strType == "dragdropadd") {
// 最后一个参数为“dragdropadd”时,说明是拖拽追加
eType = MainWindow::AT_DragDropAdd;
QUrl fileName;
QFileInfo info(newfilelist.first());
if (info.isSymLink()) {
fileName = QUrl::fromLocalFile(info.symLinkTarget());
}
if (!UiTools::isLocalDeviceFile(fileName.toLocalFile()) && info.isSymLink()) {
return -1;
}
} else if (strType == "compress" || strType == "compress_to_7z" || strType == "compress_to_zip" ||
strType == "extract" || strType == "extract_here" || strType == "extract_to_specifypath") {
// 右键操作
Expand Down

0 comments on commit 4b04070

Please sign in to comment.