WebAssembly: Proper fix for targetname != projectname

Insipred by a similar fix in McuSupport, it became now clear to me how
to get the target name (aka buildkey) for a runconfiguration.

The hack of searching for .html files can be removed.

At the same time, remove the very detailed update connections, and just
update on Target::buildSystemUpdated.

Amends: dd1882b817

Task-number: QTCREATORBUG-26562
Change-Id: Ic07b36a1e618d6cc2b6f2ee50b4170170f707632
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Alessandro Portale
2021-12-17 14:46:12 +01:00
parent 44e839ac0f
commit b1db3d2506
2 changed files with 4 additions and 20 deletions

View File

@@ -31,7 +31,7 @@
namespace WebAssembly {
namespace Internal {
class EmrunRunConfigurationFactory : public ProjectExplorer::FixedRunConfigurationFactory
class EmrunRunConfigurationFactory final : public ProjectExplorer::RunConfigurationFactory
{
Q_DECLARE_TR_FUNCTIONS(WebAssembly::Internal::EmrunRunConfigurationFactory)