Skip to content

Commit

Permalink
fix: 修复长文件名开启后,无法将文件拖到归档管理器应用中
Browse files Browse the repository at this point in the history
修复长文件名开启后,无法将文件拖到归档管理器应用中

Bug: https://pms.uniontech.com/bug-view-262097.html
Log: 修复长文件名开启后,无法将文件拖到归档管理器应用中
  • Loading branch information
myk1343 authored and deepin-bot[bot] committed Jul 4, 2024
1 parent 0dd8d15 commit c1bc108
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/source/common/uitools.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,8 @@ QString UiTools::handleFileName(const QString &strFileName)
bool UiTools::isLocalDeviceFile(const QString &strFileName)
{
QStorageInfo info(strFileName);
return info.device().startsWith("/dev/");
QString sDevice = info.device();
return sDevice.startsWith("/dev/") || sDevice.startsWith("dlnfs"); //长文件名开启后以dlnfs方式挂载
}

QStringList UiTools::removeSameFileName(const QStringList &listFiles)
Expand Down

0 comments on commit c1bc108

Please sign in to comment.