From de81832a862d2371cb0a2310a7db59aef6c4880f Mon Sep 17 00:00:00 2001 From: Matthias Kollmann Date: Tue, 17 Oct 2017 13:52:15 +0200 Subject: [PATCH] Fixed isValid() checks --- qzeroconfservice.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qzeroconfservice.cpp b/qzeroconfservice.cpp index 4afdb6a..3a8b39e 100644 --- a/qzeroconfservice.cpp +++ b/qzeroconfservice.cpp @@ -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