| 135 | } |
| 136 | |
| 137 | void BootEntryListModel::removeEntryFilePath(const QModelIndex &index, int row) |
| 138 | { |
| 139 | if(!index.isValid() || !checkIndex(index)) |
| 140 | return; |
| 141 | |
| 142 | auto command = new RemoveBootEntryFilePathCommand{*this, index, row}; |
| 143 | if(!undo_stack) |
| 144 | { |
| 145 | command->redo(); |
| 146 | delete command; |
| 147 | return; |
| 148 | } |
| 149 | |
| 150 | undo_stack->push(command); |
| 151 | } |
| 152 | |
| 153 | void BootEntryListModel::moveEntryFilePath(const QModelIndex &index, int source_row, int destination_row) |
| 154 | { |