| 182 | } |
| 183 | |
| 184 | void ModFolderPage::removeItems(const QItemSelection& selection) |
| 185 | { |
| 186 | if (m_instance != nullptr && m_instance->isRunning()) { |
| 187 | auto response = CustomMessageBox::selectable(this, tr("Confirm Delete"), |
| 188 | tr("If you remove mods while the game is running it may crash your game.\n" |
| 189 | "Are you sure you want to do this?"), |
| 190 | QMessageBox::Warning, QMessageBox::Yes | QMessageBox::No, QMessageBox::No) |
| 191 | ->exec(); |
| 192 | |
| 193 | if (response != QMessageBox::Yes) |
| 194 | return; |
| 195 | } |
| 196 | m_model->deleteMods(selection.indexes()); |
| 197 | } |
| 198 | |
| 199 | void ModFolderPage::installMods() |
| 200 | { |
nothing calls this directly
no test coverage detected