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); } }