From 0303d281cc8d3be0e612457d9f43dcf0481b9202 Mon Sep 17 00:00:00 2001 From: Steve Daulton Date: Tue, 23 May 2017 22:18:22 +0100 Subject: [PATCH] Fix for bug 1650 Don't attempt to read plug-in file when spawned from Nyquist Prompt because there isn't one. --- src/effects/nyquist/Nyquist.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/effects/nyquist/Nyquist.cpp b/src/effects/nyquist/Nyquist.cpp index 4e09da937..48d72f2d4 100644 --- a/src/effects/nyquist/Nyquist.cpp +++ b/src/effects/nyquist/Nyquist.cpp @@ -147,8 +147,7 @@ NyquistEffect::NyquistEffect(const wxString &fName) mMaxLen = NYQ_MAX_LEN; // Interactive Nyquist - if (fName == NYQUIST_PROMPT_ID) - { + if (fName == NYQUIST_PROMPT_ID) { mName = XO("Nyquist Prompt"); mType = EffectTypeProcess; mOK = true; @@ -157,6 +156,11 @@ NyquistEffect::NyquistEffect(const wxString &fName) return; } + if (fName == NYQUIST_WORKER_ID) { + // Effect spawned from Nyquist Prompt + return; + } + mFileName = fName; mName = mFileName.GetName(); mFileModified = mFileName.GetModificationTime();