Hi guys, I reckon I'm missing something fairly simple but I'm baffled at what. I'm passing a function a QList<QString> array of a load of info pulled out of a database, then processing it down into a CSV file with some tweaks. All works well up until it hits anything with a comma in it, the issue now is my code doesn't seem to find it.

Qt Code:
  1. if(passedList.value(i).contains(","))
  2. {
  3. qDebug() << "replacing";
  4. passedList.value(i).replace(",", " ");
  5. }
To copy to clipboard, switch view to plain text mode 

That's basically what I've been using, but it never seems to be tripped, and I'm wondering if I'm using .contains wrong in that method.

Any help would be appreciated!