forked from qt-creator/qt-creator
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:
@@ -389,7 +389,7 @@ CompilerWidget::CompilerWidget(const std::shared_ptr<SourceSettings> &sourceSett
|
|||||||
removeCompilerBtn->setToolTip(Tr::tr("Remove Compiler"));
|
removeCompilerBtn->setToolTip(Tr::tr("Remove Compiler"));
|
||||||
connect(removeCompilerBtn, &QToolButton::clicked, this, &CompilerWidget::remove);
|
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] {
|
connect(&m_sourceSettings->source, &Utils::StringAspect::volatileValueChanged, this, [this] {
|
||||||
compile(m_sourceSettings->source.volatileValue());
|
compile(m_sourceSettings->source.volatileValue());
|
||||||
@@ -459,7 +459,7 @@ void CompilerWidget::doCompile()
|
|||||||
{
|
{
|
||||||
using namespace Api;
|
using namespace Api;
|
||||||
|
|
||||||
QString compilerId = m_compilerSettings->compiler();
|
QString compilerId = m_compilerSettings->compiler.volatileValue();
|
||||||
if (compilerId.isEmpty())
|
if (compilerId.isEmpty())
|
||||||
compilerId = "clang_trunk";
|
compilerId = "clang_trunk";
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user