Skip to content
  • Anthony Heading's avatar
    Fix off-by-one error which stops qtchooser finding qmake · 07352531
    Anthony Heading authored and Eike Ziller's avatar Eike Ziller committed
    
    
    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: default avatarTobias Hunger <tobias.hunger@qt.io>
    Reviewed-by: default avatarEike Ziller <eike.ziller@qt.io>
    07352531