diff options
| author | Arno <am@disconnect.de> | 2013-01-04 12:53:24 +0100 | 
|---|---|---|
| committer | Arno <am@disconnect.de> | 2013-01-04 12:53:24 +0100 | 
| commit | 2fa4f7f525f7138498635204693d94fd3de2d87e (patch) | |
| tree | fbd106252669494c37951a52ee96d5d5267570e1 /filestreemodel.h | |
| parent | 6ca8a6fab443c0b4ac7f6249c9ef02457ddf4f55 (diff) | |
| download | SheMov-2fa4f7f525f7138498635204693d94fd3de2d87e.tar.gz SheMov-2fa4f7f525f7138498635204693d94fd3de2d87e.tar.bz2 SheMov-2fa4f7f525f7138498635204693d94fd3de2d87e.zip | |
Fix crash in deleting Files from Archive
The QModelIndexList must be a QList<QPersistentModelIndex> to prevent
crashes when removeRows is called. The current QModelIndex could already
be invalid.
Diffstat (limited to 'filestreemodel.h')
| -rw-r--r-- | filestreemodel.h | 2 | 
1 files changed, 1 insertions, 1 deletions
| 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<QPersistentModelIndex> &files);          bool updateSeries(int newSeries, QList<QPersistentModelIndex> files);  		//misc | 
