Fix URLs in menu texts

This commit is contained in:
Daniele Forsi 2023-08-05 23:02:24 +02:00
parent 83834674c0
commit b22922ef65
1 changed files with 2 additions and 2 deletions

View File

@ -3439,7 +3439,7 @@ void ADSBDemodGUI::adsbData_customContextMenuRequested(QPoint pos)
}); });
tableContextMenu->addAction(planeSpottersAction); tableContextMenu->addAction(planeSpottersAction);
QAction* adsbExchangeAction = new QAction("View aircraft on adsbexchange.net...", tableContextMenu); QAction* adsbExchangeAction = new QAction("View aircraft on adsbexchange.com...", tableContextMenu);
connect(adsbExchangeAction, &QAction::triggered, this, [icaoHex]()->void { connect(adsbExchangeAction, &QAction::triggered, this, [icaoHex]()->void {
QDesktopServices::openUrl(QUrl(QString("https://globe.adsbexchange.com/?icao=%1").arg(icaoHex))); QDesktopServices::openUrl(QUrl(QString("https://globe.adsbexchange.com/?icao=%1").arg(icaoHex)));
}); });
@ -3453,7 +3453,7 @@ void ADSBDemodGUI::adsbData_customContextMenuRequested(QPoint pos)
if (!aircraft->m_callsign.isEmpty()) if (!aircraft->m_callsign.isEmpty())
{ {
QAction* flightRadarAction = new QAction("View flight on flightradar24.net...", tableContextMenu); QAction* flightRadarAction = new QAction("View flight on flightradar24.com...", tableContextMenu);
connect(flightRadarAction, &QAction::triggered, this, [aircraft]()->void { connect(flightRadarAction, &QAction::triggered, this, [aircraft]()->void {
QDesktopServices::openUrl(QUrl(QString("https://www.flightradar24.com/%1").arg(aircraft->m_callsign))); QDesktopServices::openUrl(QUrl(QString("https://www.flightradar24.com/%1").arg(aircraft->m_callsign)));
}); });