修复双击网络也进入重命名编辑模式的问题

This commit is contained in:
Qxiangwenjie 2022-06-14 15:47:06 +08:00 committed by Yue-Lan
parent 95c9776286
commit 5c88ef3e6c
2 changed files with 4 additions and 2 deletions

View File

@ -513,7 +513,8 @@ void IconView::slotRename()
if (getDirectoryUri().startsWith("trash://")
|| getDirectoryUri().startsWith("recent://")
|| getDirectoryUri().startsWith("favorite://")
|| getDirectoryUri().startsWith("search://"))
|| getDirectoryUri().startsWith("search://")
|| getDirectoryUri().startsWith("network://"))
return;
//standardPaths not allow rename

View File

@ -649,7 +649,8 @@ void ListView::slotRename()
if (getDirectoryUri().startsWith("trash://")
|| getDirectoryUri().startsWith("recent://")
|| getDirectoryUri().startsWith("favorite://")
|| getDirectoryUri().startsWith("search://"))
|| getDirectoryUri().startsWith("search://")
|| getDirectoryUri().startsWith("network://"))
return;
//standardPaths not allow rename