summaryrefslogtreecommitdiff
path: root/src/modlistviewactions.h
diff options
context:
space:
mode:
authorMikaël Capelle <capelle.mikael@gmail.com>2021-01-01 20:59:30 +0100
committerMikaël Capelle <capelle.mikael@gmail.com>2021-01-02 15:38:19 +0100
commitc0ac46d5c020bfb9292a812b2c52dc3c6236c7b3 (patch)
tree3e41456b3253e34cb483974faf25577ec05cd60b /src/modlistviewactions.h
parentbd76c677307bf2106e0823477739680032a897d4 (diff)
Fix create empty mod/separator position.
Diffstat (limited to 'src/modlistviewactions.h')
-rw-r--r--src/modlistviewactions.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modlistviewactions.h b/src/modlistviewactions.h
index 2850d30a..f1215cec 100644
--- a/src/modlistviewactions.h
+++ b/src/modlistviewactions.h
@@ -36,10 +36,10 @@ public:
void installMod(const QString& archivePath = "") const;
// create an empty mod/a separator before the given mod or at
- // the end of the list if the index is -1
+ // the end of the list if the index is invalid
//
- void createEmptyMod(int modIndex) const;
- void createSeparator(int modIndex) const;
+ void createEmptyMod(const QModelIndex& index = QModelIndex()) const;
+ void createSeparator(const QModelIndex& index = QModelIndex()) const;
// check all mods for update
//