forked from qt-creator/qt-creator
Fix warning about disconnecting from 0 when importing a project.
Change-Id: I2b2edbad5b59fdad8a537c82d675cdc8b59eaa82 Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
This commit is contained in:
committed by
Tobias Hunger
parent
790cc8947c
commit
edf4a975df
@@ -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();
|
||||
|
||||
|
Reference in New Issue
Block a user