Skip to content
Snippets Groups Projects
Commit 73552eff authored by Eric Oulashin's avatar Eric Oulashin
Browse files

DDMsgReader: When checking the user's external editor settings, make sure they...

DDMsgReader: When checking the user's external editor settings, make sure they actually have an external editor configured, or else DDMsgReader will error out.
parent 311ac7ab
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.
Pipeline #5829 passed
...@@ -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