浏览代码

Bug fix: Properties dialog shows "1 file/folder", instead of a name, even when a single entry was selected only

The bug was caused by 4.2

Source commit: 74e6f6a8a5b409829a16ecea69526221cd200a24
Martin Prikryl 6 年之前
父节点
当前提交
6fdf328502
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. 7 0
      source/forms/Properties.cpp

+ 7 - 0
source/forms/Properties.cpp

@@ -231,6 +231,13 @@ void __fastcall TPropertiesDialog::LoadInfo()
     FilesSize += File->Size;
   }
 
+  if (!FMultiple)
+  {
+    // Show only file name, if we have only single file/directory.
+    // For directory, this changes, once "Calculate" button is pressed
+    Stats = TCalculateSizeStats();
+  }
+
   LoadRemoteTokens(GroupComboBox, FGroupList);
   LoadRemoteTokens(OwnerComboBox, FUserList);