Maemo: Fix possible crash due to removed project file node.

We must not save a Qt4ProFileNode in our MaemoDeployableListModel,
since it might no longer exist when we use it again.

Reviewed-by: kh1
This commit is contained in:
Christian Kandeler
2010-10-11 16:43:28 +02:00
parent fb82c78086
commit 9b4d72ad64
5 changed files with 26 additions and 26 deletions

View File

@@ -327,7 +327,7 @@ bool MaemoTemplatesManager::updateDesktopFile(const Qt4Target *target,
->deployables();
for (int i = 0; i < deployables->modelCount(); ++i) {
const MaemoDeployableListModel * const model = deployables->modelAt(i);
if (model->proFileNode() == proFileNode) {
if (model->proFilePath() == proFileNode->path()) {
executable = model->remoteExecutableFilePath();
break;
}