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

@@ -112,7 +112,7 @@ void MaemoDeployables::createModels()
= setting.second
? MaemoDeployableListModel::UpdateProFile
: MaemoDeployableListModel::DontUpdateProFile;
m_updateSettings.insert(setting.first->proFileNode()->path(),
m_updateSettings.insert(setting.first->proFilePath(),
updateSetting);
setting.first->setProFileUpdateSetting(updateSetting);
}