summaryrefslogtreecommitdiff
path: root/indra/newview/llconversationlog.cpp
diff options
context:
space:
mode:
authormberezhnoy <mberezhnoy@productengine.com>2013-02-06 19:59:57 +0200
committermberezhnoy <mberezhnoy@productengine.com>2013-02-06 19:59:57 +0200
commit9b0404c4b5c99be3ab3591c7677f95f987056795 (patch)
tree3c5c5f99004673533b860e17442a07b955aa6fb0 /indra/newview/llconversationlog.cpp
parent3781615afa6db7289f26f404885ac614c7f1cee0 (diff)
parent418b0334f2ee92ce8b8958218c8d6db5ccc855f2 (diff)
merge
Diffstat (limited to 'indra/newview/llconversationlog.cpp')
-rw-r--r--indra/newview/llconversationlog.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/indra/newview/llconversationlog.cpp b/indra/newview/llconversationlog.cpp
index 5f037549ab..04abda1799 100644
--- a/indra/newview/llconversationlog.cpp
+++ b/indra/newview/llconversationlog.cpp
@@ -532,7 +532,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);
+}