forked from qt-creator/qt-creator
projectexplorer: fix target buildDirectoryChanged signal
Change-Id: Ie46371cac2d345411247c1d2035ee2d5f3b8c00a Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
@@ -177,7 +177,7 @@ void Target::changeRunConfigurationEnabled()
|
||||
void Target::onBuildDirectoryChanged()
|
||||
{
|
||||
BuildConfiguration *bc = qobject_cast<BuildConfiguration *>(sender());
|
||||
if (bc)
|
||||
if (bc && activeBuildConfiguration() == bc)
|
||||
emit buildDirectoryChanged();
|
||||
}
|
||||
|
||||
@@ -238,6 +238,8 @@ void Target::addBuildConfiguration(BuildConfiguration *configuration)
|
||||
SLOT(changeEnvironment()));
|
||||
connect(configuration, SIGNAL(enabledChanged()),
|
||||
this, SLOT(changeBuildConfigurationEnabled()));
|
||||
connect(configuration, SIGNAL(buildDirectoryChanged()),
|
||||
SLOT(onBuildDirectoryChanged()));
|
||||
|
||||
if (!activeBuildConfiguration())
|
||||
setActiveBuildConfiguration(configuration);
|
||||
|
||||
Reference in New Issue
Block a user