Skip to content
Snippets Groups Projects
Commit 0aa68e46 authored by maxim@mnikolenko's avatar maxim@mnikolenko
Browse files

CHUI-711 FIXED Load logs from file only once to avoid duplicating. This will...

CHUI-711 FIXED Load logs from file only once to avoid duplicating. This will also solve problem with chui-710.
parent 84148762
No related branches found
No related tags found
No related merge requests found
...@@ -194,6 +194,7 @@ LLConversationLog::LLConversationLog() : ...@@ -194,6 +194,7 @@ LLConversationLog::LLConversationLog() :
if (log_mode > 0) if (log_mode > 0)
{ {
loadFromFile(getFileName());
keep_log_ctrlp->getSignal()->connect(boost::bind(&LLConversationLog::enableLogging, this, _2)); keep_log_ctrlp->getSignal()->connect(boost::bind(&LLConversationLog::enableLogging, this, _2));
enableLogging(log_mode); enableLogging(log_mode);
} }
...@@ -203,8 +204,6 @@ void LLConversationLog::enableLogging(S32 log_mode) ...@@ -203,8 +204,6 @@ void LLConversationLog::enableLogging(S32 log_mode)
{ {
if (log_mode > 0) if (log_mode > 0)
{ {
loadFromFile(getFileName());
LLIMMgr::instance().addSessionObserver(this); LLIMMgr::instance().addSessionObserver(this);
mNewMessageSignalConnection = LLIMModel::instance().addNewMsgCallback(boost::bind(&LLConversationLog::onNewMessageReceived, this, _1)); mNewMessageSignalConnection = LLIMModel::instance().addNewMsgCallback(boost::bind(&LLConversationLog::onNewMessageReceived, this, _1));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment