Skip to content

Commit

Permalink
Merge pull request #30 from pcgomes/replace_Qtscript_with_QtQml
Browse files Browse the repository at this point in the history
Fix compilation error of code compatible to QT 5.8
  • Loading branch information
pcgomes committed Jun 29, 2020
2 parents 848286f + b038be6 commit 2b62863
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/scripting/scriptengine/AmarokCollectionViewScript.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ AmarokCollectionViewScript::setLevel( int level, int type )
/* TODO - Use commented code once QT versions >= 5.12
m_engine->throwError( QJSValue::TypeError, QStringLiteral("Invalid category!") );
*/
return engine->evaluate("throw new TypeError('Invalid category!')");
return m_engine->evaluate("throw new TypeError('Invalid category!')");
}

void
Expand All @@ -233,7 +233,7 @@ AmarokCollectionViewScript::setLevels( const QList<int> &levels )
/* TODO - Use commented code once QT versions >= 5.12
m_engine->throwError( QJSValue::TypeError, QStringLiteral("Invalid category!") );
*/
engine->evaluate("throw new TypeError('Invalid category!')");
m_engine->evaluate("throw new TypeError('Invalid category!')");
return;
}
catLevels << CategoryId::CatMenuId( level );
Expand Down

0 comments on commit 2b62863

Please sign in to comment.