summaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authorOrgad Shaneh <orgad.shaneh@audiocodes.com>2014-05-19 23:35:22 +0300
committerOrgad Shaneh <orgads@gmail.com>2014-06-23 15:30:03 +0200
commit37767bc2336180f4efcf5deb832f753c39f77e5c (patch)
treefc823af45aa6b79a2ee97a2a209169e88054a39f /src/plugins
parenta6d8bbbb147f033167e47fc6fec8b442ade9aa7c (diff)
downloadqt-creator-37767bc2336180f4efcf5deb832f753c39f77e5c.tar.gz
Qnx: Fix version comparison
Change-Id: I6f55252bc777bb0dd64698982e62c873c5b9e663 Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/qnx/qnxversionnumber.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/plugins/qnx/qnxversionnumber.cpp b/src/plugins/qnx/qnxversionnumber.cpp
index 15650ac82a..80a5c011f9 100644
--- a/src/plugins/qnx/qnxversionnumber.cpp
+++ b/src/plugins/qnx/qnxversionnumber.cpp
@@ -73,10 +73,12 @@ bool QnxVersionNumber::operator >(const QnxVersionNumber &b) const
int aInt = aParts[j].toInt(&aOk);
int bInt = bParts[j].toInt(&bOk);
- if (aOk && bOk)
+ if (aOk && bOk && (aInt != bInt))
return aInt > bInt;
- return aParts[j].compare(bParts[j]) > 0;
+ int compare = aParts[j].compare(bParts[j]);
+ if (compare != 0)
+ return compare > 0;
}
}
}