Procházet zdrojové kódy

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 před 7 roky
rodič
revize
6fdf328502
1 změnil soubory, kde provedl 7 přidání a 0 odebrání
  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);