diff options
author | Merov Linden <merov@lindenlab.com> | 2013-02-04 14:43:20 -0800 |
---|---|---|
committer | Merov Linden <merov@lindenlab.com> | 2013-02-04 14:43:20 -0800 |
commit | e5c593682af3a4958316d7747d39f41e2a65e88c (patch) | |
tree | 2c62627da1b826a4df17e5173cb5b1a8fd5ada5f /indra/newview/llconversationlog.cpp | |
parent | 3e73b107d37e293b4e4cde91734e1e8251ba6b72 (diff) | |
parent | 2f6ffe2183250f3f71a8d502eed9cf9df9ff8b16 (diff) |
Pull merge from lindenlab/viewer-chui
Diffstat (limited to 'indra/newview/llconversationlog.cpp')
-rw-r--r-- | indra/newview/llconversationlog.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/indra/newview/llconversationlog.cpp b/indra/newview/llconversationlog.cpp index 7bd6ef8cd7..bfaffdd73b 100644 --- a/indra/newview/llconversationlog.cpp +++ b/indra/newview/llconversationlog.cpp @@ -531,7 +531,14 @@ void LLConversationLog::onClearLogResponse(const LLSD& notification, const LLSD& { if (0 == LLNotificationsUtil::getSelectedOption(notification, response)) { + deleteTranscripts(); mConversations.clear(); notifyObservers(); } } + +void LLConversationLog::deleteTranscripts() +{ + gDirUtilp->deleteFilesInDir(gDirUtilp->getPerAccountChatLogsDir(), "*." + LL_TRANSCRIPT_FILE_EXTENSION); + LLFloaterIMSessionTab::processChatHistoryStyleUpdate(true); +} |