MCPcopy Create free account
hub / github.com/ModOrganizer2/modorganizer / openOriginExplorer

Method openOriginExplorer

src/pluginlistcontextmenu.cpp:139–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137}
138
139void PluginListContextMenu::openOriginExplorer(const QModelIndexList& indices)
140{
141 for (auto& idx : indices) {
142 QString fileName = idx.data().toString();
143 unsigned int modIndex = ModInfo::getIndex(m_core.pluginList()->origin(fileName));
144 if (modIndex == UINT_MAX) {
145 continue;
146 }
147 ModInfo::Ptr modInfo = ModInfo::getByIndex(modIndex);
148 shell::Explore(modInfo->absolutePath());
149 }
150}
151
152void PluginListContextMenu::openOriginInformation(const QModelIndex& index)
153{

Callers

nothing calls this directly

Calls 5

toStringMethod · 0.45
dataMethod · 0.45
originMethod · 0.45
pluginListMethod · 0.45
absolutePathMethod · 0.45

Tested by

no test coverage detected