forked from qt-creator/qt-creator
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:
@@ -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("<b>" + Tr::tr("Copy file") + "</b>");
|
||||
|
||||
Reference in New Issue
Block a user