From eade3c5f26239991908a3dc5b60ef33c2740f2f9 Mon Sep 17 00:00:00 2001 From: Dominik Schmidt Date: Mon, 9 May 2011 11:33:03 +0200 Subject: [PATCH] Fix broken if-else --- src/libtomahawk/sip/sipinfo.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/libtomahawk/sip/sipinfo.cpp b/src/libtomahawk/sip/sipinfo.cpp index b63b8cae0..5764376f7 100644 --- a/src/libtomahawk/sip/sipinfo.cpp +++ b/src/libtomahawk/sip/sipinfo.cpp @@ -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