屏蔽重命名快捷键

This commit is contained in:
yangling 2022-12-13 14:01:24 +08:00
parent 020c72df6b
commit cf139426a6
1 changed files with 1 additions and 1 deletions

View File

@ -431,7 +431,7 @@ void DirectoryViewContainer::switchViewType(const QString &viewId)
bool hasStandardPath = FileUtils::containsStandardPath(selections);
if (selections.count() == 1 && !hasStandardPath) {
QString one = selections.first();
if(one.startsWith("filesafe:///") && one.remove("filesafe:///").indexOf("/") == -1) {
if(one.startsWith("filesafe:///") && one.remove("filesafe:///").indexOf("/") == -1 || one.startsWith("label://")) {
return ;
}
//修复在选中文件不可见时重命名操作不会跳转显示重命名文件问题link to bug#160799