Move removeQualityChangesGroup to QualityManagementModel

This is an operation specific to the quality management page, so it should be located there.

Contributes to issue CURA-6600.
This commit is contained in:
Ghostkeeper 2019-08-28 15:21:33 +02:00
parent ba608c5987
commit b3fd310d37
No known key found for this signature in database
GPG key ID: 86BEF881AE2CF276
3 changed files with 37 additions and 9 deletions

View file

@ -254,7 +254,7 @@ Item
onYes:
{
base.qualityManager.removeQualityChangesGroup(base.currentItem.quality_changes_group);
base.qualityManagementModel.removeQualityChangesGroup(base.currentItem.quality_changes_group);
// reset current item to the first if available
qualityListView.currentIndex = -1; // Reset selection.
}