From abb4a992d9681b4d2d0a90d1d77064f2800b7da2 Mon Sep 17 00:00:00 2001 From: shunf4 Date: Tue, 3 Sep 2024 00:50:16 +0800 Subject: [PATCH] feat: append filename also on combo select --- CPP/7zip/UI/FileManager/CopyDialog.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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;