| 1042 | } |
| 1043 | |
| 1044 | void ChatRootView::setRecentFilePath(const QString &filePath) |
| 1045 | { |
| 1046 | if (m_recentFilePath == filePath) { |
| 1047 | return; |
| 1048 | } |
| 1049 | |
| 1050 | if (auto registry = sessionFileRegistry()) { |
| 1051 | if (!m_recentFilePath.isEmpty()) { |
| 1052 | registry->release(m_recentFilePath); |
| 1053 | } |
| 1054 | if (!filePath.isEmpty()) { |
| 1055 | registry->lock(filePath); |
| 1056 | } |
| 1057 | } |
| 1058 | |
| 1059 | m_recentFilePath = filePath; |
| 1060 | m_clientInterface->setChatFilePath(filePath); |
| 1061 | m_fileManager->setChatFilePath(filePath); |
| 1062 | emit chatFileNameChanged(); |
| 1063 | } |
| 1064 | |
| 1065 | bool ChatRootView::shouldIgnoreFileForAttach(const Utils::FilePath &filePath) |
| 1066 | { |
nothing calls this directly
no test coverage detected