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