mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 14:16:32 +02:00
* Don't assert on unknown DB commands. Turned out to be annoying during development.
This commit is contained in:
@@ -85,7 +85,7 @@ DatabaseCommand::factory( const QVariant& op, const source_ptr& source )
|
|||||||
return cmd;
|
return cmd;
|
||||||
}
|
}
|
||||||
|
|
||||||
qDebug() << "ERRROR in" << Q_FUNC_INFO;
|
qDebug() << "ERRROR in" << Q_FUNC_INFO << name;
|
||||||
Q_ASSERT( false );
|
// Q_ASSERT( false );
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
@@ -204,8 +204,12 @@ DBSyncConnection::handleMsg( msg_ptr msg )
|
|||||||
// a db sync op msg
|
// a db sync op msg
|
||||||
if( msg->is( Msg::DBOP ) )
|
if( msg->is( Msg::DBOP ) )
|
||||||
{
|
{
|
||||||
DatabaseCommand * cmd = DatabaseCommand::factory( m, m_source );
|
DatabaseCommand *cmd = DatabaseCommand::factory( m, m_source );
|
||||||
Q_ASSERT( cmd );
|
if ( !cmd )
|
||||||
|
{
|
||||||
|
qDebug() << "UNKNOWN DBOP CMD!";
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
qDebug() << "APPLYING CMD" << cmd->commandname() << cmd->guid();
|
qDebug() << "APPLYING CMD" << cmd->commandname() << cmd->guid();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user