CompilerExplorer: Fix value vs. volatileValue

Previously adding a new Compiler would not compile the current source,
but the last "applied" source.

Change-Id: I0979d21a61808e7bc03e5b72e9c8a2492200c8f6
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Marcus Tillmanns
2024-03-01 07:10:01 +01:00
parent 53eb67e483
commit b6b5f04264

View File

@@ -389,7 +389,7 @@ CompilerWidget::CompilerWidget(const std::shared_ptr<SourceSettings> &sourceSett
removeCompilerBtn->setToolTip(Tr::tr("Remove Compiler"));
connect(removeCompilerBtn, &QToolButton::clicked, this, &CompilerWidget::remove);
compile(m_sourceSettings->source());
compile(m_sourceSettings->source.volatileValue());
connect(&m_sourceSettings->source, &Utils::StringAspect::volatileValueChanged, this, [this] {
compile(m_sourceSettings->source.volatileValue());
@@ -459,7 +459,7 @@ void CompilerWidget::doCompile()
{
using namespace Api;
QString compilerId = m_compilerSettings->compiler();
QString compilerId = m_compilerSettings->compiler.volatileValue();
if (compilerId.isEmpty())
compilerId = "clang_trunk";