Skip to content
Snippets Groups Projects
Commit 1b790233 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Merge branch 'dd_msg_reader_check_settings_fix' into 'master'

DDMsgReader: When checking the user's external editor settings, make sure they actually have an external editor configured, or else DDMsgReader will error out.

See merge request !410
parents 311ac7ab 73552eff
No related branches found
No related tags found
1 merge request!410DDMsgReader: When checking the user's external editor settings, make sure they actually have an external editor configured, or else DDMsgReader will error out.
...@@ -11091,11 +11091,12 @@ function DigDistMsgReader_ReplyToMsg(pMsgHdr, pMsgText, pPrivate, pMsgIdx) ...@@ -11091,11 +11091,12 @@ function DigDistMsgReader_ReplyToMsg(pMsgHdr, pMsgText, pPrivate, pMsgIdx)
// their external editor settings // their external editor settings
var editorQuoteCfg = getExternalEditorQuoteWrapCfgFromSCFG(user.editor); var editorQuoteCfg = getExternalEditorQuoteWrapCfgFromSCFG(user.editor);
// Check for the drop file casing // Check for the drop file casing
var quotesFilename = ""; var quotesFilename = "QUOTES.TXT";
if (xtrn_area.editor[user.editor].settings & XTRN_LWRCASE) if (user.editor != "" && typeof (xtrn_area.editor[user.editor]) === "object")
quotesFilename = "quotes.txt"; {
else if (xtrn_area.editor[user.editor].settings & XTRN_LWRCASE)
quotesFilename = "QUOTES.TXT"; quotesFilename = quotesFilename.toLowerCase();
}
// Write the message text to the quotes file // Write the message text to the quotes file
quoteFile = new File(system.node_dir + quotesFilename); quoteFile = new File(system.node_dir + quotesFilename);
if (quoteFile.open("w")) if (quoteFile.open("w"))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment