Fixed isValid() checks

This commit is contained in:
Matthias Kollmann
2017-10-17 13:52:15 +02:00
parent 2ab99b3772
commit de81832a86

View File

@@ -135,8 +135,8 @@ void QZeroConfService::appendTxt(QByteArray idx, QByteArray val)
bool QZeroConfService::isValid() const
{
//TODO is this a proper test
return (!data->name.isEmpty()) && (data->port > 0);
return (!data->name.isEmpty());
}
bool QZeroConfService::operator==(const QZeroConfService &rhs) const