From 2fa4f7f525f7138498635204693d94fd3de2d87e Mon Sep 17 00:00:00 2001 From: Arno Date: Fri, 4 Jan 2013 12:53:24 +0100 Subject: Fix crash in deleting Files from Archive The QModelIndexList must be a QList to prevent crashes when removeRows is called. The current QModelIndex could already be invalid. --- filestreemodel.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'filestreemodel.h') diff --git a/filestreemodel.h b/filestreemodel.h index df3831b..278f257 100644 --- a/filestreemodel.h +++ b/filestreemodel.h @@ -51,7 +51,7 @@ class FilesTreeModel : public SmTreeModel { //file manipulation bool addFile(const QString &fullPath, int type, int quality, int filePart, int seriesPartId, int dvd = -1); bool deleteFile(const QModelIndex &file); - bool deleteFiles(const QModelIndexList &files); + bool deleteFiles(const QList &files); bool updateSeries(int newSeries, QList files); //misc -- cgit v1.2.3-70-g09d2