summaryrefslogtreecommitdiff
path: root/src/filetreemodel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/filetreemodel.cpp')
-rw-r--r--src/filetreemodel.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/filetreemodel.cpp b/src/filetreemodel.cpp
index 59025479..af2cac44 100644
--- a/src/filetreemodel.cpp
+++ b/src/filetreemodel.cpp
@@ -1129,8 +1129,8 @@ std::wstring FileTreeModel::makeModName(
std::wstring name = origin.getName();
const auto& archive = file.getArchive();
- if (!archive.first.empty()) {
- name += L" (" + archive.first + L")";
+ if (!archive.name.empty()) {
+ name += L" (" + archive.name + L")";
}
return name;
@@ -1183,8 +1183,8 @@ QString FileTreeModel::makeTooltip(const FileTreeItem& item) const
const auto alternatives = file->getAlternatives();
QStringList list;
- for (auto&& alt : file->getAlternatives()) {
- const auto& origin = m_core.directoryStructure()->getOriginByID(alt.first);
+ for (auto&& alt : alternatives) {
+ const auto& origin = m_core.directoryStructure()->getOriginByID(alt.originID);
list.push_back(QString::fromStdWString(origin.getName()));
}