summaryrefslogtreecommitdiff
path: root/src/filetreemodel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/filetreemodel.cpp')
-rw-r--r--src/filetreemodel.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/filetreemodel.cpp b/src/filetreemodel.cpp
index af2cac44..7095f492 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.name.empty()) {
- name += L" (" + archive.name + L")";
+ if (!archive.name().empty()) {
+ name += L" (" + archive.name() + L")";
}
return name;
@@ -1184,7 +1184,7 @@ QString FileTreeModel::makeTooltip(const FileTreeItem& item) const
QStringList list;
for (auto&& alt : alternatives) {
- const auto& origin = m_core.directoryStructure()->getOriginByID(alt.originID);
+ const auto& origin = m_core.directoryStructure()->getOriginByID(alt.originID());
list.push_back(QString::fromStdWString(origin.getName()));
}