diff --git a/src/FreqWindow.cpp b/src/FreqWindow.cpp index 94788a48e..02a894eec 100644 --- a/src/FreqWindow.cpp +++ b/src/FreqWindow.cpp @@ -1002,7 +1002,9 @@ void FreqWindow::Recalc() // controls while the plot was being recalculated. This doesn't appear to be necessary // so just use the the top level window instead. { - wxWindowDisabler blocker(this); + Maybe blocker; + if (IsShown()) + blocker.create(this); wxYieldIfNeeded(); mAnalyst->Calculate(alg, windowFunc, mWindowSize, mRate,