RemoteLinux: Fix possible race condition.

When opening a new project, the deployables code can
apparently be run before an active project is set.

Task-number: https://projects.maemo.org/bugzilla/show_bug.cgi?id=251230
Change-Id: Ia8e3067823ee45553364b0e7a867563d008332cd
Reviewed-on: http://codereview.qt.nokia.com/243
Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
This commit is contained in:
Christian Kandeler
2011-05-30 16:47:27 +02:00
parent d627a3ebb1
commit e0f79761f3
3 changed files with 12 additions and 13 deletions

View File

@@ -129,7 +129,7 @@ void MaemoDeployables::createModels(const Qt4ProFileNode *proFileNode)
? it.value() : MaemoDeployableListModel::AskToUpdateProFile;
}
MaemoDeployableListModel *const newModel
= new MaemoDeployableListModel(proFileNode, updateSetting, this);
= new MaemoDeployableListModel(m_target, proFileNode, updateSetting, this);
m_listModels << newModel;
break;
}