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") { // 右键操作