diff --git a/mainwindow.cpp b/mainwindow.cpp index e4b4d2f4e..4c5a21e17 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -1,4 +1,4 @@ -//-------------------------------------------------------------- MainWindow +//---------------------------------------------------------------- MainWindow #include "mainwindow.h" #include "ui_mainwindow.h" diff --git a/psk_reporter.cpp b/psk_reporter.cpp index c991de57b..540d6a058 100644 --- a/psk_reporter.cpp +++ b/psk_reporter.cpp @@ -106,7 +106,9 @@ void PSK_Reporter::sendReport() // Get IP address for pskreporter.info and send report via UDP QHostInfo info = QHostInfo::fromName("report.pskreporter.info"); - m_udpSocket->writeDatagram(report,info.addresses().at(0),4739); + if (!info.addresses().isEmpty()) { + m_udpSocket->writeDatagram(report,info.addresses().at(0),4739); + } }