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

Method openOriginInformation

src/pluginlistcontextmenu.cpp:152–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150}
151
152void PluginListContextMenu::openOriginInformation(const QModelIndex& index)
153{
154 try {
155 QString fileName = index.data().toString();
156 unsigned int modIndex = ModInfo::getIndex(m_core.pluginList()->origin(fileName));
157 ModInfo::Ptr modInfo = ModInfo::getByIndex(modIndex);
158
159 if (modInfo->isRegular() || modInfo->isOverwrite()) {
160 emit openModInformation(modIndex);
161 }
162 } catch (const std::exception& e) {
163 reportError(e.what());
164 }
165}

Callers

nothing calls this directly

Calls 7

toStringMethod · 0.45
dataMethod · 0.45
originMethod · 0.45
pluginListMethod · 0.45
isRegularMethod · 0.45
isOverwriteMethod · 0.45
whatMethod · 0.45

Tested by

no test coverage detected