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

Method insertEntryFilePath

src/bootentrylistmodel.cpp:121–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119}
120
121void 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
137void BootEntryListModel::removeEntryFilePath(const QModelIndex &index, int row)
138{

Callers 1

insertRowsMethod · 0.80

Calls 1

redoMethod · 0.45

Tested by

no test coverage detected