summaryrefslogtreecommitdiff
path: root/indra/newview/llconversationlog.cpp
diff options
context:
space:
mode:
authorGilbert Gonzales <gilbert@lindenlab.com>2013-02-04 09:34:32 -0800
committerGilbert Gonzales <gilbert@lindenlab.com>2013-02-04 09:34:32 -0800
commitaef695dcef8eb5a8cf83b2d4732d38e817095fec (patch)
tree06ab859173a90d6247dd38f167096b07186a0eca /indra/newview/llconversationlog.cpp
parenta47be3a83c94f207ca116afb30691a9d555c3c1b (diff)
parent2f6ffe2183250f3f71a8d502eed9cf9df9ff8b16 (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 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);
+}