From b7935aedec70dd4f0c40dbe948dba9a80a56a75a Mon Sep 17 00:00:00 2001 From: AL <26797547+Al12rs@users.noreply.github.com> Date: Sat, 31 Oct 2020 20:58:07 +0100 Subject: Change Alternatives vector to use a struct --- src/filetree.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/filetree.cpp') diff --git a/src/filetree.cpp b/src/filetree.cpp index 1dadfaad..230d7d7e 100644 --- a/src/filetree.cpp +++ b/src/filetree.cpp @@ -591,16 +591,16 @@ bool FileTree::showShellMenu(QPoint pos) } for (auto&& alt : alts) { - auto itor = menus.find(alt.first); + auto itor = menus.find(alt.originID); if (itor == menus.end()) { - itor = menus.emplace(alt.first, mw).first; + itor = menus.emplace(alt.originID, mw).first; } - const auto fullPath = file->getFullPath(alt.first); + const auto fullPath = file->getFullPath(alt.originID); if (fullPath.empty()) { log::error( "file {} not found in origin {}", - item->dataRelativeFilePath(), alt.first); + item->dataRelativeFilePath(), alt.originID); continue; } -- cgit v1.3.1