mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-10 08:04:25 +02:00
* Fix DatabaseCommand_RenamePlaylist.
This commit is contained in:
@@ -5,6 +5,7 @@
|
|||||||
#include "databasecommand_addfiles.h"
|
#include "databasecommand_addfiles.h"
|
||||||
#include "databasecommand_createplaylist.h"
|
#include "databasecommand_createplaylist.h"
|
||||||
#include "databasecommand_deleteplaylist.h"
|
#include "databasecommand_deleteplaylist.h"
|
||||||
|
#include "databasecommand_renameplaylist.h"
|
||||||
#include "databasecommand_setplaylistrevision.h"
|
#include "databasecommand_setplaylistrevision.h"
|
||||||
|
|
||||||
|
|
||||||
@@ -69,6 +70,13 @@ DatabaseCommand::factory( const QVariant& op, const source_ptr& source )
|
|||||||
QJson::QObjectHelper::qvariant2qobject( op.toMap(), cmd );
|
QJson::QObjectHelper::qvariant2qobject( op.toMap(), cmd );
|
||||||
return cmd;
|
return cmd;
|
||||||
}
|
}
|
||||||
|
else if( name == "renameplaylist" )
|
||||||
|
{
|
||||||
|
DatabaseCommand_RenamePlaylist * cmd = new DatabaseCommand_RenamePlaylist;
|
||||||
|
cmd->setSource( source );
|
||||||
|
QJson::QObjectHelper::qvariant2qobject( op.toMap(), cmd );
|
||||||
|
return cmd;
|
||||||
|
}
|
||||||
else if( name == "setplaylistrevision" )
|
else if( name == "setplaylistrevision" )
|
||||||
{
|
{
|
||||||
DatabaseCommand_SetPlaylistRevision * cmd = new DatabaseCommand_SetPlaylistRevision;
|
DatabaseCommand_SetPlaylistRevision * cmd = new DatabaseCommand_SetPlaylistRevision;
|
||||||
|
@@ -27,7 +27,7 @@ DatabaseCommand_RenamePlaylist::exec( DatabaseImpl* lib )
|
|||||||
|
|
||||||
cre.prepare( sql );
|
cre.prepare( sql );
|
||||||
cre.bindValue( ":id", m_playlistguid );
|
cre.bindValue( ":id", m_playlistguid );
|
||||||
cre.bindValue( ":title", m_playlistguid );
|
cre.bindValue( ":title", m_playlistTitle );
|
||||||
|
|
||||||
bool ok = cre.exec();
|
bool ok = cre.exec();
|
||||||
if( !ok )
|
if( !ok )
|
||||||
|
Reference in New Issue
Block a user