summaryrefslogtreecommitdiff
path: root/src/libs/cplusplus/CppDocument.cpp
diff options
context:
space:
mode:
authorAnthony Heading <ajrh@ajrh.net>2016-12-31 20:34:38 -0500
committerEike Ziller <eike.ziller@qt.io>2017-01-09 12:42:25 +0000
commit07352531395a16b18f564cbe07084d9c26d9e321 (patch)
treefea54a8ab33fb78dea3a15ee187928982cff06f9 /src/libs/cplusplus/CppDocument.cpp
parent4d79ffb8f348c988f8df80174406f366d8b288ad (diff)
downloadqt-creator-07352531395a16b18f564cbe07084d9c26d9e321.tar.gz
Fix off-by-one error which stops qtchooser finding qmake
At startup, qtcreator prints an error: % qtcreator "The command \"/qmake\" could not be started." This appears to be because of an off-by-one error in BuildableHelperLibrary::qtChooserToQmakePath(const QString &path) which parses the output of a call to "qtchooser -print-env" to extract the value of the QTTOOLDIR variable. The code attempts to move past the prefix string to find the end quote, but by moving one too few characters it finds the starting quote instead, resulting in a zero length string result. Change-Id: I74368f10a81eda2286ae735bdc595c0f92e4e665 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/libs/cplusplus/CppDocument.cpp')
0 files changed, 0 insertions, 0 deletions