| 1262 | } |
| 1263 | |
| 1264 | void AppFrame::setRigControlPort(const std::string& portName) { |
| 1265 | if (rigPortDialog == nullptr) { |
| 1266 | return; |
| 1267 | } |
| 1268 | if (!portName.empty()) { |
| 1269 | rigPort = portName; |
| 1270 | |
| 1271 | wxGetApp().stopRig(); |
| 1272 | wxGetApp().initRig(rigModel, rigPort, rigSerialRate); |
| 1273 | |
| 1274 | Refresh(); |
| 1275 | } |
| 1276 | rigPortDialog->EndModal(0); |
| 1277 | delete rigPortDialog; |
| 1278 | rigPortDialog = nullptr; |
| 1279 | } |
| 1280 | |
| 1281 | |
| 1282 | void AppFrame::dismissRigControlPortDialog() { |
no test coverage detected