MCPcopy Create free account
hub / github.com/clementgallet/libTAS / removeScript

Method removeScript

src/program/ui/LuaConsoleWindow.cpp:109–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107}
108
109void LuaConsoleWindow::removeScript()
110{
111 /* Remove scripts from bottom to top */
112 QModelIndexList indexlist = luaView->selectionModel()->selectedRows();
113 std::sort(indexlist.begin(), indexlist.end());
114
115 for (auto it = indexlist.crbegin(); it != indexlist.crend(); it++) {
116 luaModel->removeFile(it->row());
117 }
118}
119
120void LuaConsoleWindow::clearScripts()
121{

Callers

nothing calls this directly

Calls 5

crbeginMethod · 0.80
crendMethod · 0.80
removeFileMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected