mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-12 00:54:20 +02:00
Use Q_ASSERT_X to print error message
This commit is contained in:
@@ -933,8 +933,7 @@ ViewManager::showDynamicPage( const QString& pageName )
|
|||||||
{
|
{
|
||||||
if ( !m_dynamicPagesInstanceLoaders.contains( 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_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() );
|
||||||
Q_ASSERT( false );
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user