From 2c49d45297798a4962e388eabca5328609021cda Mon Sep 17 00:00:00 2001 From: Petr Mironychev <9195189+Palm1r@users.noreply.github.com> Date: Sun, 26 Jan 2025 10:03:34 +0100 Subject: [PATCH] fix: Keep name of chat after saving --- ChatView/ChatRootView.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ChatView/ChatRootView.cpp b/ChatView/ChatRootView.cpp index c631dc5..1400229 100644 --- a/ChatView/ChatRootView.cpp +++ b/ChatView/ChatRootView.cpp @@ -173,6 +173,8 @@ void ChatRootView::saveHistory(const QString &filePath) auto result = ChatSerializer::saveToFile(m_chatModel, filePath); if (!result.success) { LOG_MESSAGE(QString("Failed to save chat history: %1").arg(result.errorMessage)); + } else { + setRecentFilePath(filePath); } }