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/mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mainwindow.cpp') diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 9b7def0f..d8d8533c 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -2185,7 +2185,7 @@ void MainWindow::removeMod_clicked() QMessageBox::Yes | QMessageBox::No) == QMessageBox::Yes) { // use mod names instead of indexes because those become invalid during the removal foreach (QString name, modNames) { - m_OrganizerCore.modList()->removeRowForce(ModInfo::getIndex(name)); + m_OrganizerCore.modList()->removeRowForce(ModInfo::getIndex(name), QModelIndex()); } } } else { -- cgit v1.3.1