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 authored and deepin-bot[bot] committed Oct 12, 2024
1 parent 05f6d3c commit 5d5fbc6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,13 @@ int main(int argc, char *argv[])
if (strType == "dragdropadd") {
// 最后一个参数为“dragdropadd”时,说明是拖拽追加
eType = MainWindow::AT_DragDropAdd;
QFileInfo info(newfilelist.first());
if (info.isSymLink()) {
QUrl fileName = QUrl::fromLocalFile(info.symLinkTarget());
if (!UiTools::isLocalDeviceFile(fileName.toLocalFile())) {
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 5d5fbc6

Please sign in to comment.