Commit c9324c82 authored by Daniel Teske's avatar Daniel Teske

Fix crash on editing qmake path

Invalid qmake's would lead to crashes

Task-Nr: QTCREATORBUG-5544

Change-Id: Iba3d4004a7d242f0ff5e56556befa82b58e68bbb
Reviewed-on: http://codereview.qt.nokia.com/2277Reviewed-by: default avatarQt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: default avatarTobias Hunger <tobias.hunger@nokia.com>
parent 619c0cc0
......@@ -629,6 +629,8 @@ void QtOptionsPageWidget::editPath()
if (qtVersion.isNull())
return;
BaseQtVersion *version = QtVersionFactory::createQtVersionFromQMakePath(qtVersion);
if (!version)
return;
// 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