1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-04-22 00:42:04 +02:00

* Don't assert on unknown DB commands. Turned out to be annoying during development.

This commit is contained in:
Christian Muehlhaeuser 2010-11-02 17:05:52 +01:00
parent e7021d4df0
commit be2b9c7ab3
2 changed files with 8 additions and 4 deletions

View File

@ -85,7 +85,7 @@ DatabaseCommand::factory( const QVariant& op, const source_ptr& source )
return cmd;
}
qDebug() << "ERRROR in" << Q_FUNC_INFO;
Q_ASSERT( false );
qDebug() << "ERRROR in" << Q_FUNC_INFO << name;
// Q_ASSERT( false );
return NULL;
}

View File

@ -204,8 +204,12 @@ DBSyncConnection::handleMsg( msg_ptr msg )
// a db sync op msg
if( msg->is( Msg::DBOP ) )
{
DatabaseCommand * cmd = DatabaseCommand::factory( m, m_source );
Q_ASSERT( cmd );
DatabaseCommand *cmd = DatabaseCommand::factory( m, m_source );
if ( !cmd )
{
qDebug() << "UNKNOWN DBOP CMD!";
return;
}
qDebug() << "APPLYING CMD" << cmd->commandname() << cmd->guid();