diff options
| -rw-r--r-- | indra/newview/app_settings/settings_per_account.xml | 11 | ||||
| -rw-r--r-- | indra/newview/llstartup.cpp | 7 | 
2 files changed, 7 insertions, 11 deletions
| diff --git a/indra/newview/app_settings/settings_per_account.xml b/indra/newview/app_settings/settings_per_account.xml index 0b589e2da6..363713f2f4 100644 --- a/indra/newview/app_settings/settings_per_account.xml +++ b/indra/newview/app_settings/settings_per_account.xml @@ -176,17 +176,6 @@          <key>Value</key>              <integer>1</integer>          </map> -    <key>LogInstantMessages</key> -        <map> -        <key>Comment</key> -            <string>Log Instant Messages</string> -        <key>Persist</key> -            <integer>1</integer> -        <key>Type</key> -            <string>Boolean</string> -        <key>Value</key> -            <integer>1</integer> -        </map>      <key>LogShowHistory</key>          <map>          <key>Comment</key> diff --git a/indra/newview/llstartup.cpp b/indra/newview/llstartup.cpp index ab86f752c1..37e6ded986 100644 --- a/indra/newview/llstartup.cpp +++ b/indra/newview/llstartup.cpp @@ -917,6 +917,13 @@ bool idle_startup()  		// Overwrite default user settings with user settings								   		LLAppViewer::instance()->loadSettingsFromDirectory("Account"); +		// Convert 'LogInstantMessages' into 'KeepConversationLogTranscripts' for backward compatibility (CHUI-743). +		LLControlVariablePtr logInstantMessagesControl = gSavedPerAccountSettings.getControl("LogInstantMessages"); +		if (logInstantMessagesControl.notNull()) +		{ +			gSavedPerAccountSettings.setS32("KeepConversationLogTranscripts", logInstantMessagesControl->getValue() ? 2 : 1); +		} +  		// Need to set the LastLogoff time here if we don't have one.  LastLogoff is used for "Recent Items" calculation  		// and startup time is close enough if we don't have a real value.  		if (gSavedPerAccountSettings.getU32("LastLogoff") == 0) | 
