From b1f1682790072fbfb45bd9eaa3c6890edfb81a22 Mon Sep 17 00:00:00 2001 From: Tannin Date: Wed, 26 Mar 2014 17:23:26 +0100 Subject: - bugfix: the add/remove categories function could fail when a filter/grouping on categories was active --- src/mainwindow.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/mainwindow.h') diff --git a/src/mainwindow.h b/src/mainwindow.h index 46165f0f..23923677 100644 --- a/src/mainwindow.h +++ b/src/mainwindow.h @@ -236,8 +236,9 @@ private: * the changes made in the menu (which is the delta between the current menu selection and the reference mod) * @param menu the menu after editing by the user * @param modRow index of the mod to edit + * @param referenceRow row of the reference mod */ - void addRemoveCategoriesFromMenu(QMenu *menu, int modRow); + void addRemoveCategoriesFromMenu(QMenu *menu, int modRow, int referenceRow); /** * Sets category selections from menu; for multiple mods, this will completely @@ -324,6 +325,7 @@ private: QString m_GamePath; int m_ContextRow; + QPersistentModelIndex m_ContextIdx; QTreeWidgetItem *m_ContextItem; QAction *m_ContextAction; -- cgit v1.3.1