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

Fix gcc warnings

This commit is contained in:
Jon Beniston
2021-10-12 12:10:12 +01:00
parent fbef25884e
commit 1de5a38d6b
5 changed files with 57 additions and 42 deletions
@@ -221,8 +221,11 @@ void GS232ControllerGUI::updatePipeList()
if (currentText.isEmpty())
{
if (m_availablePipes.size() > 0)
ui->sources->setCurrentIndex(0);
// Source feature may be loaded after this, so may not have existed when
// displaySettings was called
if (m_availablePipes.size() > 0) {
ui->sources->setCurrentIndex(ui->sources->findText(m_settings.m_source));
}
}
else
{