kopia lustrzana https://github.com/f4exb/sdrangel
Sat Tracker: Prevent crash if satellite not found.
rodzic
198b971275
commit
13ba98eb8a
|
@ -197,6 +197,13 @@ void SatelliteSelectionDialog::displaySatInfo(const QString& name)
|
||||||
{
|
{
|
||||||
SatNogsSatellite *sat = m_satellites[name];
|
SatNogsSatellite *sat = m_satellites[name];
|
||||||
m_satInfo = sat;
|
m_satInfo = sat;
|
||||||
|
if (!sat)
|
||||||
|
{
|
||||||
|
// Might not be null if satellite name entered via API
|
||||||
|
ui->satInfo->setText("");
|
||||||
|
ui->satImage->setPixmap(QPixmap());
|
||||||
|
return;
|
||||||
|
}
|
||||||
QStringList info;
|
QStringList info;
|
||||||
info.append(QString("Name: %1").arg(sat->m_name));
|
info.append(QString("Name: %1").arg(sat->m_name));
|
||||||
if (sat->m_names.size() > 0)
|
if (sat->m_names.size() > 0)
|
||||||
|
|
Ładowanie…
Reference in New Issue