Commit c996d801 authored by Kai Koehne's avatar Kai Koehne
Browse files

Fix crash if no qt version is registered



Change-Id: Ib3b4b2379999061b04923b98044ed83743cd6423
Reviewed-by: default avatarAlessandro Portale <alessandro.portale@digia.com>
parent c5dd58fc
......@@ -124,6 +124,9 @@ int ExampleSetModel::indexForQtVersion(BaseQtVersion *qtVersion) const
{
// return either the entry with the same QtId, or an extra example set with same path
if (!qtVersion)
return -1;
// check for Qt version
for (int i = 0; i < rowCount(); ++i) {
if (getType(i) == QtExampleSet && getQtId(i) == qtVersion->uniqueId())
......
Supports Markdown
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