From 6b4cb9ff4c7d5627a7b84c9969e5381063e60b93 Mon Sep 17 00:00:00 2001 From: Tannin Date: Wed, 25 Feb 2015 18:00:46 +0100 Subject: bugfix: crash when trying to delete mods (issue #1016) --- src/modlist.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modlist.h') diff --git a/src/modlist.h b/src/modlist.h index ecd30875..73a49745 100644 --- a/src/modlist.h +++ b/src/modlist.h @@ -95,7 +95,7 @@ public: * @brief remove the specified mod without asking for confirmation * @param row the row to remove */ - void removeRowForce(int row); + void removeRowForce(int row, const QModelIndex &parent); void notifyChange(int rowStart, int rowEnd = -1); static QString getColumnName(int column); @@ -141,7 +141,7 @@ public: // implementation of virtual functions of QAbstractItemModel virtual Qt::DropActions supportedDropActions() const { return Qt::MoveAction | Qt::CopyAction; } virtual QStringList mimeTypes() const; virtual bool dropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent); - virtual void removeRow(int row, const QModelIndex &parent); + virtual bool removeRows(int row, int count, const QModelIndex &parent); virtual QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const; -- cgit v1.3.1