Commit edf4a975 authored by Friedemann Kleint's avatar Friedemann Kleint Committed by Tobias Hunger
Browse files

Fix warning about disconnecting from 0 when importing a project.



Change-Id: I2b2edbad5b59fdad8a537c82d675cdc8b59eaa82
Reviewed-by: default avatarTobias Hunger <tobias.hunger@nokia.com>
parent 790cc894
......@@ -1097,8 +1097,10 @@ QStringList Qt4Project::applicationProFilePathes(const QString &prepend) const
void Qt4Project::activeTargetWasChanged()
{
disconnect(m_activeTarget, SIGNAL(activeBuildConfigurationChanged(ProjectExplorer::BuildConfiguration*)),
this, SLOT(scheduleAsyncUpdate()));
if (m_activeTarget) {
disconnect(m_activeTarget, SIGNAL(activeBuildConfigurationChanged(ProjectExplorer::BuildConfiguration*)),
this, SLOT(scheduleAsyncUpdate()));
}
m_activeTarget = activeTarget();
......
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