Commit b31c703d authored by Michael Pyne's avatar Michael Pyne

tag-guesser: Fix a couple of logic errors handling TRM events.

if(!foo == bar) is *not* the same as the correct
if(foo != bar), noticed by a sharp-eyed user compiling Juk. Thanks for
the bug report!

Unfortunately I missed committing this in time for 4.14.2. :(

BUG:339616
FIXED-IN:4.14.3
parent 93f4535f
......@@ -280,7 +280,7 @@ protected:
virtual void customEvent(QEvent *event)
{
if(!event->type() == KTRMEvent::id)
if(event->type() != KTRMEvent::id)
return;
KTRMEvent *e = static_cast<KTRMEvent *>(event);
......@@ -634,7 +634,7 @@ void KTRMLookup::puidGenerated()
void KTRMLookup::lookupResult( KJob* job )
{
#if HAVE_TUNEPIMP >= 5
if ( !job->error() == 0 ) {
if ( job->error() != 0 ) {
finished();
return;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment