| 137 | } |
| 138 | |
| 139 | void 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 | |
| 152 | void PluginListContextMenu::openOriginInformation(const QModelIndex& index) |
| 153 | { |
nothing calls this directly
no test coverage detected