| 119 | } |
| 120 | |
| 121 | void BootEntryListModel::insertEntryFilePath(const QModelIndex &index, int row, const FilePath::ANY &file_path) |
| 122 | { |
| 123 | if(!index.isValid() || !checkIndex(index)) |
| 124 | return; |
| 125 | |
| 126 | auto command = new InsertBootEntryFilePathCommand{*this, index, row, file_path}; |
| 127 | if(!undo_stack) |
| 128 | { |
| 129 | command->redo(); |
| 130 | delete command; |
| 131 | return; |
| 132 | } |
| 133 | |
| 134 | undo_stack->push(command); |
| 135 | } |
| 136 | |
| 137 | void BootEntryListModel::removeEntryFilePath(const QModelIndex &index, int row) |
| 138 | { |