diff --git a/CPP/7zip/UI/FileManager/CopyDialog.cpp b/CPP/7zip/UI/FileManager/CopyDialog.cpp index 5948f88b..e4c43438 100755 --- a/CPP/7zip/UI/FileManager/CopyDialog.cpp +++ b/CPP/7zip/UI/FileManager/CopyDialog.cpp @@ -387,6 +387,9 @@ bool CCopyDialog::OnCommand(unsigned code, unsigned itemID, LPARAM lParam) { UString strPath; _path.GetText(strPath); + if (isActuallyAppendingFilename) { + OnButtonAddFileName(); + } ShowPathFreeSpace(strPath); return true; @@ -398,6 +401,9 @@ bool CCopyDialog::OnCommand(unsigned code, unsigned itemID, LPARAM lParam) { UString strPath; _path.GetLBText(nSel, strPath); + if (isActuallyAppendingFilename) { + OnButtonAddFileName(); + } ShowPathFreeSpace(strPath); } return true;