Commit 16e48e02 authored by Christian Kandeler's avatar Christian Kandeler

Maemo: If we find an icon, let's use it for the package manager.

In particular, the desktop icon created by the mobile wizards
will be found.

Task-number: QTCREATORBUG-4174
parent 97d28107
......@@ -706,6 +706,14 @@ bool AbstractDebBasedQt4MaemoTarget::adaptControlFileField(QByteArray &document,
void AbstractDebBasedQt4MaemoTarget::handleTargetAddedSpecial()
{
if (controlFileFieldValue(IconFieldName, true).isEmpty()) {
// Such a file is created by the mobile wizards.
const QString iconPath = project()->projectDirectory()
+ QLatin1Char('/') + project()->displayName()
+ QLatin1String(".png");
if (QFileInfo(iconPath).exists())
setPackageManagerIcon(iconPath);
}
m_filesWatcher->addPath(debianDirPath());
m_filesWatcher->addPath(changeLogFilePath());
m_filesWatcher->addPath(controlFilePath());
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment