Version splitting used wrong variable, causing version() to return [0,0,0]. Fixes #1329

This commit is contained in:
Marius Kintel 2015-04-28 10:20:32 -04:00
parent 2b9949fefd
commit be7acf4ab2

View file

@ -58,7 +58,7 @@ isEmpty(VERSION) {
SHORTVERSION = $$section(VERSION, "-", 0, 0)
# Split version into Year Month [Day]
VERSION_SPLIT=$$split(DISPLAYVERSION, ".")
VERSION_SPLIT=$$split(SHORTVERSION, ".")
VERSION_YEAR=$$member(VERSION_SPLIT, 0)
VERSION_MONTH=$$member(VERSION_SPLIT, 1)
VERSION_DAY=$$member(VERSION_SPLIT, 2)