diff options
| author | Mnikolenko ProductEngine <mnikolenko@productengine.com> | 2013-02-04 14:37:29 +0200 |
|---|---|---|
| committer | Mnikolenko ProductEngine <mnikolenko@productengine.com> | 2013-02-04 14:37:29 +0200 |
| commit | 2f6ffe2183250f3f71a8d502eed9cf9df9ff8b16 (patch) | |
| tree | 8e8d0ea7dfce6619c5a6895a7eca06a10befa8f5 /indra/newview/llconversationlog.cpp | |
| parent | 2fe6fce0183904936a3af7d9ce707b60b34895d1 (diff) | |
CHUI-721 FIXED Delete transcripts when performing Clear log action.
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); +} |
