From 5d5fbc6381d0c72df92c78a1963a65fabf0a87ff Mon Sep 17 00:00:00 2001 From: ut001910 Date: Thu, 10 Oct 2024 11:07:14 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8E=8B=E7=BC=A9=E6=9C=AC=E5=9C=B0?= =?UTF-8?q?=E5=BF=AB=E6=8D=B7=E6=96=B9=E5=BC=8F=E6=8C=87=E5=90=91=E7=BD=91?= =?UTF-8?q?=E7=BB=9C=E8=B7=AF=E5=BE=84=E6=97=B6=EF=BC=8C=E6=9C=AC=E5=9C=B0?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E4=B8=8D=E5=85=81=E8=AE=B8=E6=8B=96=E6=8B=BD?= =?UTF-8?q?=E5=88=B0=E5=8E=8B=E7=BC=A9=E5=BF=AB=E6=8D=B7=E6=96=B9=E5=BC=8F?= =?UTF-8?q?=E8=BF=BD=E5=8A=A0=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 压缩本地快捷方式指向网络路径时,本地文件不允许拖拽到压缩快捷方式追加文件 Bug: https://pms.uniontech.com/bug-view-276309.html Log: 压缩本地快捷方式指向网络路径时,本地文件不允许拖拽到压缩快捷方式追加文件 --- src/main.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index a7366681..d4997841 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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") { // 右键操作