MCPcopy Create free account
hub / github.com/Neverous/efibooteditor / setEntryNextBoot

Method setEntryNextBoot

src/bootentrylistmodel.cpp:264–278  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

262}
263
264void BootEntryListModel::setEntryNextBoot(const QModelIndex &index, bool value)
265{
266 if(!index.isValid() || !checkIndex(index))
267 return;
268
269 auto command = new SetBootEntryValueCommand<bool>{*this, index, tr("next boot"), &BootEntry::is_next_boot, value};
270 if(!undo_stack)
271 {
272 command->redo();
273 delete command;
274 return;
275 }
276
277 undo_stack->push(command);
278}
279
280auto BootEntryListModel::insertRows(int row, int count, const QModelIndex &parent) -> bool
281{

Callers

nothing calls this directly

Calls 1

redoMethod · 0.45

Tested by

no test coverage detected