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:
parent
e7021d4df0
commit
be2b9c7ab3
@ -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;
|
||||
}
|
||||
|
@ -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();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user