forked from qt-creator/qt-creator
ProjectExplorer: Fix infinite loop in mini target selector
Change-Id: I454c1b6eb3361b2e610782585152243163acfd58 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
9ee955acb7
commit
714a9315aa
@@ -828,7 +828,7 @@ QVector<int> MiniProjectTargetSelector::listWidgetWidths(int minSize, int maxSiz
|
||||
}
|
||||
|
||||
widthToDistribute -= delta * i;
|
||||
if (widthToDistribute == 0)
|
||||
if (widthToDistribute <= 0)
|
||||
return result;
|
||||
|
||||
first = result[indexes.first()];
|
||||
|
Reference in New Issue
Block a user