summaryrefslogtreecommitdiffstats
path: root/util/s60theme/main.cpp
diff options
context:
space:
mode:
authorAlessandro Portale <alessandro.portale@nokia.com>2010-05-27 20:05:36 (GMT)
committerAlessandro Portale <alessandro.portale@nokia.com>2010-05-27 20:09:35 (GMT)
commit3acedecda374aa56a0d4a6536a45baee54b3e64c (patch)
tree4ca1032ea784e766879ec6d0490a20724ec8ff1d /util/s60theme/main.cpp
parent02f3facbc114fdc1e12cb0abf5be7b0cf42ce0a4 (diff)
downloadQt-3acedecda374aa56a0d4a6536a45baee54b3e64c.zip
Qt-3acedecda374aa56a0d4a6536a45baee54b3e64c.tar.gz
Qt-3acedecda374aa56a0d4a6536a45baee54b3e64c.tar.bz2
Fixes for the s60theme tool
The main app did not return an error code but rather a int-converted boolean. When loading from .tdf files, the tool will now search for .svg files directly, if the part is not found in the .tdf file. Task-number: QTSIM-9
Diffstat (limited to 'util/s60theme/main.cpp')
-rw-r--r--util/s60theme/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/s60theme/main.cpp b/util/s60theme/main.cpp
index 7f38d5c..1234fd2 100644
--- a/util/s60theme/main.cpp
+++ b/util/s60theme/main.cpp
@@ -70,9 +70,9 @@ int main(int argc, char *argv[])
const QFileInfo inputInfo(input);
const QString output = QString::fromLatin1(argv[2]);
if (inputInfo.isDir())
- return S60ThemeConvert::convertDefaultThemeToBlob(input, output);
+ return S60ThemeConvert::convertDefaultThemeToBlob(input, output) ? 0 : 1;
else if (inputInfo.suffix().compare(QString::fromLatin1("tdf"), Qt::CaseInsensitive) == 0)
- return S60ThemeConvert::convertTdfToBlob(input, output);
+ return S60ThemeConvert::convertTdfToBlob(input, output) ? 0 : 1;
return help();
}