Skip to content
Snippets Groups Projects
Commit b78edfe9 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 32acc702
Branches
Tags
1 merge request!455Update branch with changes from master
...@@ -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 (user.editor != "" && typeof (xtrn_area.editor[user.editor]) === "object")
{
if (xtrn_area.editor[user.editor].settings & XTRN_LWRCASE) if (xtrn_area.editor[user.editor].settings & XTRN_LWRCASE)
quotesFilename = "quotes.txt"; quotesFilename = quotesFilename.toLowerCase();
else }
quotesFilename = "QUOTES.TXT";
// 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