fixing some small bugs
This commit is contained in:
parent
c35c0f6550
commit
5a1fa3fc75
5 changed files with 12 additions and 7 deletions
|
@ -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"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue