Skip to content

Commit d33036a

Browse files
committed
use size of views for iteration
1 parent 8768b8d commit d33036a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/Heavy/HeavyExportDialog.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ class ExporterSettingsPanel final : public Component
8787
auto heavyState = settingsTree.getChildWithName("HeavyState");
8888
if (heavyState.isValid()) {
8989
this->setState(heavyState);
90-
for (int i = 0; i < 5; i++) {
90+
for (int i = 0; i < views.size(); i++) {
9191
views[i]->blockDialog = true;
9292
views[i]->setState(heavyState);
9393
views[i]->blockDialog = false;

0 commit comments

Comments
 (0)