summaryrefslogtreecommitdiffstats
path: root/qmake/generators
diff options
context:
space:
mode:
authorDebao Zhang <hello@debao.me>2013-01-09 14:26:52 +0800
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-01-25 00:40:40 +0100
commita909dd0ea48af9428dbbeac1504df0eb68b63df4 (patch)
tree51ac23c6424ee45fe8f3c9d995ce53a5683239af /qmake/generators
parenteaeccce3cc3869ede1cb9408b350088630a7ecbb (diff)
qmake: Don't let an empty $$VERSION cause a garbled version in .rc files
Change-Id: I7f0560979e645da216674cc70c73c5ea9c053aa6 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Diffstat (limited to 'qmake/generators')
-rw-r--r--qmake/generators/win32/winmakefile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qmake/generators/win32/winmakefile.cpp b/qmake/generators/win32/winmakefile.cpp
index d9425491ec..36e3860a03 100644
--- a/qmake/generators/win32/winmakefile.cpp
+++ b/qmake/generators/win32/winmakefile.cpp
@@ -392,7 +392,7 @@ void Win32MakefileGenerator::processRcFileVar()
QByteArray rcString;
QTextStream ts(&rcString, QFile::WriteOnly);
- QStringList vers = project->first("VERSION").toQString().split(".");
+ QStringList vers = project->first("VERSION").toQString().split(".", QString::SkipEmptyParts);
for (int i = vers.size(); i < 4; i++)
vers += "0";
QString versionString = vers.join('.');