From a8a9bf1713b0d0c346543f4dd1cda29dd55ab208 Mon Sep 17 00:00:00 2001 From: hjk Date: Thu, 6 Apr 2023 11:37:01 +0200 Subject: [PATCH] ProjectExplorer: Be more generous on what the manual copy step accepts That's a manual fallback for odd cases, do not artificially restrict usability. Change-Id: I6e5433559534ae1d7be29a218442b46c306b2bed Reviewed-by: Christian Stenger --- src/plugins/projectexplorer/copystep.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/plugins/projectexplorer/copystep.cpp b/src/plugins/projectexplorer/copystep.cpp index 9f0201d73e9..d152671c70e 100644 --- a/src/plugins/projectexplorer/copystep.cpp +++ b/src/plugins/projectexplorer/copystep.cpp @@ -72,8 +72,11 @@ public: CopyFileStep(BuildStepList *bsl, Id id) : CopyStepBase(bsl, id) { - m_sourceAspect->setExpectedKind(PathChooser::File); - m_targetAspect->setExpectedKind(PathChooser::SaveFile); + // Expected kind could be stricter in theory, but since this here is + // a last stand fallback, better not impose extra "nice to have" + // work on the system. + m_sourceAspect->setExpectedKind(PathChooser::Any); // "File" + m_targetAspect->setExpectedKind(PathChooser::Any); // "SaveFile" setSummaryUpdater([] { return QString("" + Tr::tr("Copy file") + "");