From c3f73fe8edb3edce863967093b8b91e2002e33b8 Mon Sep 17 00:00:00 2001 From: Mikaƫl Capelle Date: Mon, 18 Jan 2021 20:25:02 +0100 Subject: Comment and remove extra blank lines. --- src/modlistcontextmenu.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/modlistcontextmenu.cpp b/src/modlistcontextmenu.cpp index c7cbb033..2d9577c5 100644 --- a/src/modlistcontextmenu.cpp +++ b/src/modlistcontextmenu.cpp @@ -24,13 +24,13 @@ void ModListGlobalContextMenu::populate(OrganizerCore& core, ModListView* view, { clear(); - auto modIndex = index.data(ModList::IndexRole); if (modIndex.isValid() && view->sortColumn() == ModList::COL_PRIORITY) { auto info = ModInfo::getByIndex(modIndex.toInt()); if (!info->isBackup()) { - + // the mod are not created/installed at the same position depending + // on the clicked mod and the sort order QString installText = tr("Install mod above... "); QString createText = tr("Create empty mod above"); if (info->isSeparator()) { @@ -41,6 +41,7 @@ void ModListGlobalContextMenu::populate(OrganizerCore& core, ModListView* view, installText = tr("Install mod below... "); createText = tr("Create empty mod below"); } + addAction(installText, [=]() { view->actions().installMod("", index); }); addAction(createText, [=]() { view->actions().createEmptyMod(index); }); addAction(tr("Create separator above"), [=]() { view->actions().createSeparator(index); }); -- cgit v1.3.1