fixing some small bugs

This commit is contained in:
Chris Cochrun 2022-03-16 07:21:30 -05:00
parent c35c0f6550
commit 5a1fa3fc75
5 changed files with 12 additions and 7 deletions

View file

@ -159,7 +159,7 @@ void VideoSqlModel::updateFilePath(const int &row, const QUrl &filePath) {
QVariantList VideoSqlModel::getVideo(const int &row) {
qDebug() << "Row we are getting is " << row;
QVariantList video;
QSqlRecord rec = record(row - 1);
QSqlRecord rec = record(row);
qDebug() << rec.value("title");
video.append(rec.value("title"));
video.append(rec.value("filePath"));