Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment