forked from qt-creator/qt-creator
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user