Removed previously commented code that used QFile and added a qDebug message for if the save fails.