| 451 | } |
| 452 | |
| 453 | void SourceSettingSelection::SetSource(const OBSWeakSource &source, |
| 454 | bool restorePreviousSelection) |
| 455 | { |
| 456 | const auto previousSelection = _settings->currentData(); |
| 457 | Populate(source); |
| 458 | if (restorePreviousSelection) { |
| 459 | _settings->setCurrentIndex( |
| 460 | _settings->findData(previousSelection)); |
| 461 | } |
| 462 | } |
| 463 | |
| 464 | void SourceSettingSelection::SetSelection(const OBSWeakSource &source, |
| 465 | const SourceSetting &setting) |
no outgoing calls
no test coverage detected