Skip to content

Commit

Permalink
Add column in SEM analysis restart endlessly the analysis
Browse files Browse the repository at this point in the history
Related to PR jasp-stats/jaspSem#204
A new function adds the scores to the dataset: this restarts the SEM analysis endlessly.
  • Loading branch information
boutinb authored and JorisGoosen committed May 21, 2024
1 parent 8df5414 commit 3019641
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions QMLComponents/models/listmodeltermsavailable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@

void ListModelTermsAvailable::resetTermsFromSources()
{

beginResetModel();

Terms oldTerms = terms();
Terms termsAvailable = getSourceTerms();
Terms removedTerms, addedTerms;

Expand All @@ -34,8 +32,11 @@ void ListModelTermsAvailable::resetTermsFromSources()
if (!_allTerms.contains(term))
addedTerms.add(term);

initTerms(termsAvailable);
if (oldTerms == termsAvailable)
return;

beginResetModel();
initTerms(termsAvailable);
endResetModel();

emit availableTermsReset(addedTerms, removedTerms);
Expand Down

0 comments on commit 3019641

Please sign in to comment.