diff options
author | Arno <am@disconnect.de> | 2010-07-09 21:07:10 +0200 |
---|---|---|
committer | Arno <am@disconnect.de> | 2010-07-09 21:07:10 +0200 |
commit | d9d32f44d64834754650fc4fe70a4d7aae449e0c (patch) | |
tree | 9aab57b91222613020b9df1f369eda0c2358b7ab /filestreemodel.cpp | |
parent | 4f313fb96ada615b209a6e37832da140abf63b07 (diff) | |
download | SheMov-d9d32f44d64834754650fc4fe70a4d7aae449e0c.tar.gz SheMov-d9d32f44d64834754650fc4fe70a4d7aae449e0c.tar.bz2 SheMov-d9d32f44d64834754650fc4fe70a4d7aae449e0c.zip |
Final version of NewMovieWizard::accept() (hopefully)
Actually made this function work. Forgot to handle actors and genres.
Also several bugfixes in other parts:
-fix typo in FilesTreeModel query
-commit changes ind MappingTableModel::addItem, making the genre and
actor widgets work as intended
-remove redundant MappingTableModel::find(), already implemented in
SmTreeModel
-call next() instead of exec() in SeriesTreeModel::addSeriesPart. Query
is already executing if it's a select
-use QModelIndex::row() instead of column() in
MappingTableWidget::removeItem()
-add partNo to layout in MovieInfopage::MovieInfoPage()
-add convenience function setMappings() to MappingTableModel
Diffstat (limited to 'filestreemodel.cpp')
-rw-r--r-- | filestreemodel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/filestreemodel.cpp b/filestreemodel.cpp index 76dca8b..01b088a 100644 --- a/filestreemodel.cpp +++ b/filestreemodel.cpp @@ -21,7 +21,7 @@ FilesTreeModel::FilesTreeModel(QStringList &headers, QObject *parent) : SmTreeMo mUpdateQualityQuery = new QSqlQuery(mDb); mUpdateQualityQuery->prepare("UPDATE files SET siquality = :quality WHERE ifiles_id = :id"); mInsertFileQuery = new QSqlQuery(mDb); - mInsertFileQuery->prepare("INSERT INTO files(iseriespart_id, tfilename, cmd5sum, bisize, idvd, sifiletype, sifileno, siqualiy) VALUES(:seriespartid, :fname, :md5, :size, :dvd, :type, :fileno, :quality)"); + mInsertFileQuery->prepare("INSERT INTO files(iseriespart_id, tfilename, cmd5sum, bisize, idvd, sifiletype, sifileno, siquality) VALUES(:seriespartid, :fname, :md5, :size, :dvd, :type, :fileno, :quality)"); } FilesTreeModel::~FilesTreeModel(){ |