mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-04 21:27:58 +02:00
Don't think two SipInfos are equal just because they are both invalid ... stupid assumptions are stupid
This commit is contained in:
@@ -253,11 +253,7 @@ operator<< ( QDebug dbg, const SipInfo& info )
|
|||||||
bool operator==( const SipInfo& one, const SipInfo& two )
|
bool operator==( const SipInfo& one, const SipInfo& two )
|
||||||
{
|
{
|
||||||
// check valid/invalid combinations first, so we don't try to access any invalid sipInfos (->assert)
|
// check valid/invalid combinations first, so we don't try to access any invalid sipInfos (->assert)
|
||||||
if ( !one.isValid() && !two.isValid() )
|
if ( ( one.isValid() && !two.isValid() ) || ( !one.isValid() && two.isValid() ) )
|
||||||
{
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
else if ( ( one.isValid() && !two.isValid() ) || ( !one.isValid() && two.isValid() ) )
|
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user