1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-20 07:49:42 +01:00

Use Q_ASSERT_X to print error message

This commit is contained in:
Uwe L. Korn 2014-04-01 18:16:57 +01:00
parent fb02c08a55
commit 70a17eafcf

View File

@ -933,8 +933,7 @@ ViewManager::showDynamicPage( const QString& pageName )
{
if ( !m_dynamicPagesInstanceLoaders.contains( pageName ) )
{
tLog() << "Trying to show a page that does not exist and does not have a registered loader";
Q_ASSERT( false );
Q_ASSERT_X( false, Q_FUNC_INFO, QString("Trying to show a page that does not exist and does not have a registered loader: %d" ).arg( pageName ).toStdString().c_str() );
return 0;
}