1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-05 21:57:41 +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

@@ -205,7 +205,11 @@ DBSyncConnection::handleMsg( msg_ptr msg )
if( msg->is( Msg::DBOP ) )
{
DatabaseCommand *cmd = DatabaseCommand::factory( m, m_source );
Q_ASSERT( cmd );
if ( !cmd )
{
qDebug() << "UNKNOWN DBOP CMD!";
return;
}
qDebug() << "APPLYING CMD" << cmd->commandname() << cmd->guid();