~ywwg/mixxx/DJO-hacks-1.10

« back to all changes in this revision

Viewing changes to mixxx/src/library/rhythmbox/rhythmboxplaylistmodel.cpp

  • Committer: Owen Williams
  • Date: 2012-01-07 16:37:08 UTC
  • mfrom: (2438.43.214 mixxx-1.10)
  • Revision ID: owilliams@mixxx.org-20120107163708-lwqpuskqd148ous5
merge with lp:mixxx/1.10

Show diffs side-by-side

added added

removed removed

Lines of Context:
103
103
void RhythmboxPlaylistModel::setPlaylist(QString playlist_path) {
104
104
    int playlistId = -1;
105
105
    QSqlQuery finder_query(m_database);
106
 
    finder_query.prepare(
107
 
        "SELECT id from rhythmbox_playlists where name='"+playlist_path+"'");
 
106
    finder_query.prepare("SELECT id from rhythmbox_playlists where name=:name");
 
107
    finder_query.bindValue(":name", playlist_path);
 
108
 
108
109
    if (!finder_query.exec()) {
109
110
        qDebug() << "SQL Error in RhythmboxPlaylistModel.cpp: line"
110
111
                 << __LINE__ << " " << finder_query.lastError();