mirror of
https://github.com/jbagg/QtZeroConf.git
synced 2025-08-02 19:04:25 +02:00
Fixed isValid() checks
This commit is contained in:
@@ -135,8 +135,8 @@ void QZeroConfService::appendTxt(QByteArray idx, QByteArray val)
|
|||||||
|
|
||||||
bool QZeroConfService::isValid() const
|
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
|
bool QZeroConfService::operator==(const QZeroConfService &rhs) const
|
||||||
|
Reference in New Issue
Block a user