summaryrefslogtreecommitdiffstats
path: root/filestreemodel.h
diff options
context:
space:
mode:
authorArno <am@disconnect.de>2013-02-08 03:57:41 +0100
committerArno <am@disconnect.de>2013-02-08 03:57:41 +0100
commit534ca73d64b13c4604e6823e7d3a7f290b225e1d (patch)
treeb155a08517a059a4d88e2beb4d6933c40568aa03 /filestreemodel.h
parenta2c0865ca9491d403ae0032bbc9894c452cc09d0 (diff)
downloadSheMov-534ca73d64b13c4604e6823e7d3a7f290b225e1d.tar.gz
SheMov-534ca73d64b13c4604e6823e7d3a7f290b225e1d.tar.bz2
SheMov-534ca73d64b13c4604e6823e7d3a7f290b225e1d.zip
Fix "suggest file for burning"
Don't use a SQL-Query to find files. Traverse the model instead. Also check if the resulting index is already selected. All in all, make it usable again.
Diffstat (limited to 'filestreemodel.h')
-rw-r--r--filestreemodel.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/filestreemodel.h b/filestreemodel.h
index 88dc81f..e7d1b32 100644
--- a/filestreemodel.h
+++ b/filestreemodel.h
@@ -49,7 +49,7 @@ class FilesTreeModel : public SmTreeModel {
QMap<QString, QString> pictureInfo(const QModelIndex &idx) const;
QMap<QString, QString> pictureMetaInfo(const QModelIndex &idx);
int fileType(const QString &md5sum) const;
- QModelIndexList fileSizeLessThan(quint64 size, quint16 limit = 1) const;
+ QModelIndex fileSizeLessThan(quint64 size) const;
//file manipulation
bool addFile(const QString &fullPath, int type, int quality, int filePart, int seriesPartId, int dvd = -1);
@@ -80,7 +80,6 @@ class FilesTreeModel : public SmTreeModel {
QSqlQuery *mDeleteFileQuery;
QSqlQuery *mFileTypeQuery;
QSqlQuery *mUpdateSeriesPartQuery;
- QString mFileSizeLessThanQueryTemplate;
//misc
QHash<int, QString> mFileTypes;