diff options
-rw-r--r-- | qt-ui/models.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/qt-ui/models.cpp b/qt-ui/models.cpp index 82c125df6..6ac320b26 100644 --- a/qt-ui/models.cpp +++ b/qt-ui/models.cpp @@ -184,7 +184,9 @@ void CylindersModel::remove(const QModelIndex& index) if (index.column() != REMOVE){ return; } + beginRemoveRows(QModelIndex(), index.row(), index.row()); // yah, know, ugly. // Remove code should be here. + endRemoveRows(); } void WeightModel::remove(const QModelIndex& index) @@ -192,7 +194,9 @@ void WeightModel::remove(const QModelIndex& index) if (index.column() != REMOVE){ return; } + beginRemoveRows(QModelIndex(), index.row(), index.row()); // yah, know, ugly. // Remove code should be here. + endRemoveRows(); } void WeightModel::clear() |