1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-01 13:47:01 -04:00

Rotator controller: Fix initialisation of serial port. Fix crash when serial port not initialised

This commit is contained in:
Jon Beniston
2022-11-18 10:55:15 +00:00
parent 4fed3a7eab
commit e6b54ccb1d
2 changed files with 27 additions and 17 deletions
@@ -163,6 +163,9 @@ GS232ControllerGUI::GS232ControllerGUI(PluginAPI* pluginAPI, FeatureUISet *featu
ui->elevationCurrentText->setText("-");
updateSerialPortList();
if (ui->serialPort->currentIndex() >= 0) {
on_serialPort_currentIndexChanged(ui->serialPort->currentIndex());
}
m_settings.setRollupState(&m_rollupState);