summaryrefslogtreecommitdiff
path: root/src/filetree.cpp
diff options
context:
space:
mode:
authorAL <26797547+Al12rs@users.noreply.github.com>2020-11-02 21:45:32 +0100
committerAL <26797547+Al12rs@users.noreply.github.com>2020-11-02 21:45:32 +0100
commit4814ba626e80f5137076556b687e59e6bbd8be34 (patch)
tree7497d6feec3aa864197680eac88bb616dcaf68db /src/filetree.cpp
parentb7935aedec70dd4f0c40dbe948dba9a80a56a75a (diff)
Convert FileAlternative and DataArchiveOrigin to classes
Diffstat (limited to 'src/filetree.cpp')
-rw-r--r--src/filetree.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/filetree.cpp b/src/filetree.cpp
index 230d7d7e..f46216b5 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.originID);
+ auto itor = menus.find(alt.originID());
if (itor == menus.end()) {
- itor = menus.emplace(alt.originID, mw).first;
+ itor = menus.emplace(alt.originID(), mw).first;
}
- const auto fullPath = file->getFullPath(alt.originID);
+ const auto fullPath = file->getFullPath(alt.originID());
if (fullPath.empty()) {
log::error(
"file {} not found in origin {}",
- item->dataRelativeFilePath(), alt.originID);
+ item->dataRelativeFilePath(), alt.originID());
continue;
}