Commit c9324c82 authored by Daniel Teske's avatar Daniel Teske

Fix crash on editing qmake path

Invalid qmake's would lead to crashes


Change-Id: Iba3d4004a7d242f0ff5e56556befa82b58e68bbb
Reviewed-on: default avatarQt Sanity Bot <>
Reviewed-by: default avatarTobias Hunger <>
parent 619c0cc0
......@@ -629,6 +629,8 @@ void QtOptionsPageWidget::editPath()
if (qtVersion.isNull())
BaseQtVersion *version = QtVersionFactory::createQtVersionFromQMakePath(qtVersion);
if (!version)
// Same type? then replace!
if (current->type() != version->type()) {
// not the same type, error out
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment