~mixxxdevelopers/mixxx/features_multi-track

« back to all changes in this revision

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

  • Committer: Raffitea
  • Date: 2012-01-08 22:00:08 UTC
  • mfrom: (2837.3.15 mixxx-1.10)
  • Revision ID: raffitea-20120108220008-kjlduz99xdl84u4q
Merging from 1.10 to get SSMP3 fix.

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.replace("'","''")+"'");
 
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();