From: Scott Kostyshak Date: Sat, 21 Apr 2018 17:31:49 +0000 (-0400) Subject: buffer-forall now disables async X-Git-Tag: lyx-2.4.0dev-acb2ca7b~3582 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=8be514258f59ec877c34fa3d7f090e231df0ccef;p=lyx.git buffer-forall now disables async Before, the command buffer-forall buffer-export only exported one buffer for me. With async disabled, the command works as documented and successfully exports all buffers. Also before, I received an assertion from buffer-forall buffer-close which caused a SIGSEGV at #9422. Now, the action works as expected. --- diff --git a/src/frontends/qt4/GuiApplication.cpp b/src/frontends/qt4/GuiApplication.cpp index ca2d61f507..9104b2a993 100644 --- a/src/frontends/qt4/GuiApplication.cpp +++ b/src/frontends/qt4/GuiApplication.cpp @@ -1883,7 +1883,8 @@ void GuiApplication::dispatch(FuncRequest const & cmd, DispatchResult & dr) } case LFUN_BUFFER_FORALL: { - FuncRequest const funcToRun = lyxaction.lookupFunc(cmd.getLongArg(0)); + FuncRequest funcToRun = lyxaction.lookupFunc(cmd.getLongArg(0)); + funcToRun.allowAsync(false); map views_lVisible; map activeBuffers;