| 27 | } |
| 28 | |
| 29 | void BootEntryListView::insertRow() |
| 30 | { |
| 31 | if(options & BootEntryListModel::Option::ReadOnly) |
| 32 | return; |
| 33 | |
| 34 | auto row = currentIndex().row(); |
| 35 | if(model()->insertRow(row + 1)) |
| 36 | setCurrentIndex(model()->index(row + 1, 0)); |
| 37 | } |
| 38 | |
| 39 | void BootEntryListView::duplicateRow() |
| 40 | { |