diff options
| author | Tannin <devnull@localhost> | 2014-03-26 17:23:26 +0100 |
|---|---|---|
| committer | Tannin <devnull@localhost> | 2014-03-26 17:23:26 +0100 |
| commit | b1f1682790072fbfb45bd9eaa3c6890edfb81a22 (patch) | |
| tree | 585e2cb3c09f4add1b90f59369c8e8b0473b0462 /src/mainwindow.h | |
| parent | 28301e7486423a2ca0b5434d1538d36b05f4ac86 (diff) | |
- bugfix: the add/remove categories function could fail when a filter/grouping on categories was active
Diffstat (limited to 'src/mainwindow.h')
| -rw-r--r-- | src/mainwindow.h | 4 |
1 files changed, 3 insertions, 1 deletions
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; |
