diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2019-05-31 15:15:47 -0400 |
|---|---|---|
| committer | isanae <14251494+isanae@users.noreply.github.com> | 2019-05-31 15:15:47 -0400 |
| commit | fa7e34e84a09ed7a2f453a35a48e71477c841e5b (patch) | |
| tree | d70321d596fa1fde1a25cd84868f2275a2cbebb2 /src/shared | |
| parent | a6dbb1d7668a2219811fec71a55294e1db6d14aa (diff) | |
conflict lists:
- the file index is now stored in the row data
- the alternate origins are now added to the context menu in a "go to" submenu
- context menu items are now visually disabled instead of omitted from the menu
Diffstat (limited to 'src/shared')
| -rw-r--r-- | src/shared/directoryentry.cpp | 5 | ||||
| -rw-r--r-- | src/shared/directoryentry.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/shared/directoryentry.cpp b/src/shared/directoryentry.cpp index 1179110a..bde515a9 100644 --- a/src/shared/directoryentry.cpp +++ b/src/shared/directoryentry.cpp @@ -220,6 +220,11 @@ std::vector<FileEntry::Ptr> FilesOrigin::getFiles() const return result;
}
+FileEntry::Ptr FilesOrigin::findFile(FileEntry::Index index) const
+{
+ return m_FileRegister.lock()->getFile(index);
+}
+
bool FilesOrigin::containsArchive(std::wstring archiveName)
{
for (FileEntry::Index fileIdx : m_Files)
diff --git a/src/shared/directoryentry.h b/src/shared/directoryentry.h index e7af1ae7..785c3ff6 100644 --- a/src/shared/directoryentry.h +++ b/src/shared/directoryentry.h @@ -135,6 +135,7 @@ public: const std::wstring &getPath() const { return m_Path; }
std::vector<FileEntry::Ptr> getFiles() const;
+ FileEntry::Ptr findFile(FileEntry::Index index) const;
void enable(bool enabled, time_t notAfter = LONG_MAX);
bool isDisabled() const { return m_Disabled; }
|
