| 150 | } |
| 151 | |
| 152 | void 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 | } |
nothing calls this directly
no test coverage detected