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:
parent
fb02c08a55
commit
70a17eafcf
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user