diff options
Diffstat (limited to 'qt-ui/models.cpp')
-rw-r--r-- | qt-ui/models.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/qt-ui/models.cpp b/qt-ui/models.cpp index 63b97ad19..80f4073f7 100644 --- a/qt-ui/models.cpp +++ b/qt-ui/models.cpp @@ -274,6 +274,8 @@ void CylindersModel::add() int row = rows; fill_default_cylinder(¤t->cylinder[row]); + // mark the cylinder as 'used' since it was manually added + current->cylinder[row].used = true; beginInsertRows(QModelIndex(), row, row); rows++; changed = true; |