Skip to content

Commit

Permalink
StatusBox: Fix compilation for Qt < 5.11
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-kendall committed Jan 25, 2020
1 parent 03ad44d commit 0d3bb87
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mythtv/programs/mythfrontend/statusbox.cpp
Expand Up @@ -1303,8 +1303,12 @@ void StatusBox::doMachineStatus()
if (f & QNetworkInterface::IsLoopBack)
continue;

#if QT_VERSION >= QT_VERSION_CHECK(5, 11, 0)
QNetworkInterface::InterfaceType type = iface.type();
QString name = type == QNetworkInterface::Wifi ? tr("WiFi") : tr("Ethernet");
#else
QString name = tr("Network");
#endif
AddLogLine(" " + name + QString(" (%1): ").arg(iface.humanReadableName()));
AddLogLine(" " + tr("MAC Address") + ": " + iface.hardwareAddress());
foreach(QNetworkAddressEntry addr, iface.addressEntries())
Expand Down

0 comments on commit 0d3bb87

Please sign in to comment.