diff options
| author | AL <26797547+Al12rs@users.noreply.github.com> | 2020-10-31 20:58:07 +0100 |
|---|---|---|
| committer | AL <26797547+Al12rs@users.noreply.github.com> | 2020-11-02 20:35:05 +0100 |
| commit | b7935aedec70dd4f0c40dbe948dba9a80a56a75a (patch) | |
| tree | 358266669f9163a883dcc4fabf3fcc67f8b80fa0 /src/filetree.cpp | |
| parent | 88475677d29a275fd9d25f452f58d3d745720124 (diff) | |
Change Alternatives vector to use a struct
Diffstat (limited to 'src/filetree.cpp')
| -rw-r--r-- | src/filetree.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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; } |
