forked from qt-creator/qt-creator
ProjectExplorer: Update ExecutableAspect's visual representation
... when building finishes. Chances are that an executable was created during the build. Fixes: QTCREATORBUG-32781 Change-Id: I63bf42708ef96c1be40376ea565a94f1fe81f5ae Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
|
||||
#include "runconfigurationaspects.h"
|
||||
|
||||
#include "buildmanager.h"
|
||||
#include "devicesupport/devicekitaspects.h"
|
||||
#include "devicesupport/devicemanager.h"
|
||||
#include "devicesupport/idevice.h"
|
||||
@@ -635,6 +636,10 @@ FilePath ExecutableAspect::executable() const
|
||||
void ExecutableAspect::addToLayoutImpl(Layout &builder)
|
||||
{
|
||||
builder.addItem(m_executable);
|
||||
if (m_executable.pathChooser()) {
|
||||
connect(BuildManager::instance(), &BuildManager::buildQueueFinished,
|
||||
m_executable.pathChooser(), &PathChooser::triggerChanged);
|
||||
}
|
||||
if (m_alternativeExecutable) {
|
||||
builder.flush();
|
||||
builder.addItem(m_alternativeExecutable);
|
||||
|
Reference in New Issue
Block a user