| 241 | } |
| 242 | |
| 243 | void GameListSettingsWidget::onRemoveExcludedPathButtonClicked() |
| 244 | { |
| 245 | const int row = m_ui.excludedPaths->currentRow(); |
| 246 | QListWidgetItem* item = (row >= 0) ? m_ui.excludedPaths->takeItem(row) : 0; |
| 247 | if (!item) |
| 248 | return; |
| 249 | |
| 250 | if (Host::RemoveBaseValueFromStringList("GameList", "ExcludedPaths", item->text().toUtf8().constData())) |
| 251 | Host::CommitBaseSettingChanges(); |
| 252 | |
| 253 | delete item; |
| 254 | |
| 255 | g_main_window->refreshGameList(false, true); |
| 256 | } |
| 257 | |
| 258 | void GameListSettingsWidget::onExcludedPathsSelectionChanged() |
| 259 | { |
nothing calls this directly
no test coverage detected