mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-26 01:39:05 -05:00
Catch TleException in Satellite Selection Dialog to avoid crash
This commit is contained in:
parent
8440e4e63b
commit
3935c58feb
@ -223,6 +223,8 @@ void SatelliteSelectionDialog::displaySatInfo(const QString& name)
|
||||
}
|
||||
}
|
||||
if (sat->m_tle != nullptr)
|
||||
{
|
||||
try
|
||||
{
|
||||
info.append("Orbit:");
|
||||
Tle tle = Tle(sat->m_tle->m_tle0.toStdString(),
|
||||
@ -233,6 +235,11 @@ void SatelliteSelectionDialog::displaySatInfo(const QString& name)
|
||||
info.append(QString(" Inclination: %1%2").arg(Units::radiansToDegrees(ele.Inclination())).arg(QChar(0xb0)));
|
||||
info.append(QString(" Eccentricity: %1").arg(ele.Eccentricity()));
|
||||
}
|
||||
catch (TleException tlee)
|
||||
{
|
||||
qDebug() << "SatelliteSelectionDialog::displaySatInfo: TleException " << tlee.what();
|
||||
}
|
||||
}
|
||||
|
||||
ui->satInfo->setText(info.join("\n"));
|
||||
if (!sat->m_image.isEmpty())
|
||||
|
Loading…
Reference in New Issue
Block a user