Maemo: Don't create desktop files, ask before updating project files.

Also don't waste performance by repeatedly reacting to the same
project file change.
This is relevant for bigger projects to which a Maemo target might
have been added by mistake.

Task-number: QTCREATORBUG-2647
Reviewed-by: kh1
This commit is contained in:
Christian Kandeler
2010-10-11 15:40:25 +02:00
parent a48139b8d0
commit d23afc8e61
12 changed files with 421 additions and 33 deletions

View File

@@ -402,9 +402,9 @@ void MaemoTemplatesManager::handleProFileUpdated()
= qobject_cast<MaemoDeployables *>(sender());
if (!deployables)
return;
const Target * const target = deployables->buildStep()->target();
if (m_maemoProjects.contains(target->project()))
updateDesktopFiles(qobject_cast<const Qt4Target *>(target));
// const Target * const target = deployables->buildStep()->target();
// if (m_maemoProjects.contains(target->project()))
// updateDesktopFiles(qobject_cast<const Qt4Target *>(target));
}
QString MaemoTemplatesManager::version(const Project *project,