1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-21 08:19:42 +01:00

Fix broken if-else

This commit is contained in:
Dominik Schmidt 2011-05-09 11:33:03 +02:00
parent 06f33c5d81
commit eade3c5f26

View File

@ -84,6 +84,7 @@ SipInfo::isValid() const
{
qDebug() << Q_FUNC_INFO << d->visible << d->host.hostName() << d->port << d->uniqname << d->key;
if( !d->visible.isNull() )
{
if(
// visible and all data available
( d->visible.toBool() && !d->host.hostName().isNull() && ( d->port > 0 ) && !d->uniqname.isNull() && !d->key.isNull() )
@ -91,9 +92,9 @@ SipInfo::isValid() const
|| ( !d->visible.toBool() && d->host.hostName().isNull() && ( d->port < 0 ) && d->uniqname.isNull() && d->key.isNull() )
)
return true;
else
return false;
}
return false;
}
void