Commit bb20672a authored by Tobias Hunger's avatar Tobias Hunger
Browse files

Actually propagate targetinformationchanged signal

 * Fixes RunConfigurations not updating when changing something
   in the BuildConfiguration.

Reviewed-by: dt
parent 261966db
......@@ -412,6 +412,8 @@ void Qt4Target::onAddedBuildConfiguration(ProjectExplorer::BuildConfiguration *b
Q_ASSERT(qt4bc);
connect(qt4bc, SIGNAL(buildDirectoryInitialized()),
this, SIGNAL(buildDirectoryInitialized()));
connect(qt4bc, SIGNAL(targetInformationChanged()),
this, SLOT(changeTargetInformation()));
}
void Qt4Target::slotUpdateDeviceInformation()
......@@ -422,6 +424,13 @@ void Qt4Target::slotUpdateDeviceInformation()
}
}
void Qt4Target::changeTargetInformation()
{
Qt4BuildConfiguration * bc = qobject_cast<Qt4BuildConfiguration *>(sender());
if (bc && bc == activeBuildConfiguration())
emit targetInformationChanged();
}
void Qt4Target::updateToolTipAndIcon()
{
if (const S60DeviceRunConfiguration *s60DeviceRc = qobject_cast<S60DeviceRunConfiguration *>(activeRunConfiguration())) {
......
......@@ -109,6 +109,7 @@ private slots:
void onAddedRunConfiguration(ProjectExplorer::RunConfiguration *rc);
void onAddedBuildConfiguration(ProjectExplorer::BuildConfiguration *bc);
void slotUpdateDeviceInformation();
void changeTargetInformation();
void updateToolTipAndIcon();
private:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment