ProjectExplorer: Fix infinite loop in mini target selector

Change-Id: I454c1b6eb3361b2e610782585152243163acfd58
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
Orgad Shaneh
2016-09-18 09:53:34 +03:00
committed by Orgad Shaneh
parent 9ee955acb7
commit 714a9315aa

View File

@@ -828,7 +828,7 @@ QVector<int> MiniProjectTargetSelector::listWidgetWidths(int minSize, int maxSiz
} }
widthToDistribute -= delta * i; widthToDistribute -= delta * i;
if (widthToDistribute == 0) if (widthToDistribute <= 0)
return result; return result;
first = result[indexes.first()]; first = result[indexes.first()];