Skip to content

Commit

Permalink
Add warning when maximum rows are exceeded (#5589)
Browse files Browse the repository at this point in the history
  • Loading branch information
boutinb authored Jun 27, 2024
1 parent 2568381 commit 8da400d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions QMLComponents/models/listmodeltermsassigned.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ Terms ListModelTermsAssigned::addTerms(const Terms& termsToAdd, int dropItemInde
beginRemoveRows(QModelIndex(), maxRows, maxRows + termsToSendBack.size());
_setTerms(newTerms);
endRemoveRows();

listView()->addControlWarningTemporary(tr("Only %1 variables are allowed").arg(maxRows));
}
}

Expand Down

0 comments on commit 8da400d

Please sign in to comment.