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 <christian.stenger@qt.io>
This commit is contained in:
hjk
2023-04-06 11:37:01 +02:00
parent e0be80a19d
commit a8a9bf1713

View File

@@ -72,8 +72,11 @@ public:
CopyFileStep(BuildStepList *bsl, Id id) CopyFileStep(BuildStepList *bsl, Id id)
: CopyStepBase(bsl, id) : CopyStepBase(bsl, id)
{ {
m_sourceAspect->setExpectedKind(PathChooser::File); // Expected kind could be stricter in theory, but since this here is
m_targetAspect->setExpectedKind(PathChooser::SaveFile); // 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([] { setSummaryUpdater([] {
return QString("<b>" + Tr::tr("Copy file") + "</b>"); return QString("<b>" + Tr::tr("Copy file") + "</b>");