mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-06-14 04:22:28 -04:00
Merge pull request #1550 from srcejon/fix_satellite_image_url
Sat Tracker: Fix satellite images
This commit is contained in:
commit
ddbda51712
@ -253,9 +253,17 @@ void SatelliteSelectionDialog::displaySatInfo(const QString& name)
|
|||||||
|
|
||||||
ui->satInfo->setText(info.join("\n"));
|
ui->satInfo->setText(info.join("\n"));
|
||||||
if (!sat->m_image.isEmpty())
|
if (!sat->m_image.isEmpty())
|
||||||
m_networkManager->get(QNetworkRequest(QUrl(sat->m_image)));
|
{
|
||||||
|
if (sat->m_image.startsWith("http")) {
|
||||||
|
m_networkManager->get(QNetworkRequest(QUrl(sat->m_image)));
|
||||||
|
} else {
|
||||||
|
m_networkManager->get(QNetworkRequest(QUrl("https://db-satnogs.freetls.fastly.net/media/" + sat->m_image)));
|
||||||
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
ui->satImage->setPixmap(QPixmap());
|
ui->satImage->setPixmap(QPixmap());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Open the Satellite's webpage
|
// Open the Satellite's webpage
|
||||||
|
Loading…
x
Reference in New Issue
Block a user