| 963 | } |
| 964 | |
| 965 | void |
| 966 | ProfileConfigTab::onAnalyzerTypeChanged(int index) |
| 967 | { |
| 968 | if (!this->refreshing) { |
| 969 | if (!this->shouldDisregardTweaks()) { |
| 970 | this->refreshUi(); |
| 971 | return; |
| 972 | } |
| 973 | |
| 974 | switch (index) { |
| 975 | case 0: |
| 976 | this->profile.setInterface(SUSCAN_SOURCE_LOCAL_INTERFACE); |
| 977 | this->onDeviceChanged(this->savedLocalDeviceIndex); |
| 978 | break; |
| 979 | |
| 980 | case 1: |
| 981 | this->savedLocalDeviceIndex = this->ui->deviceCombo->currentIndex(); |
| 982 | this->profile.setInterface(SUSCAN_SOURCE_REMOTE_INTERFACE); |
| 983 | this->onChangeConnectionType(); |
| 984 | this->onRemoteParamsChanged(); |
| 985 | break; |
| 986 | } |
| 987 | |
| 988 | this->refreshUiState(); |
| 989 | } |
| 990 | } |
| 991 | |
| 992 | void |
| 993 | ProfileConfigTab::onRemoteParamsChanged(void) |
no test coverage detected