]> git.lyx.org Git - lyx.git/commitdiff
buffer-forall now disables async
authorScott Kostyshak <skostysh@lyx.org>
Sat, 21 Apr 2018 17:31:49 +0000 (13:31 -0400)
committerScott Kostyshak <skostysh@lyx.org>
Sun, 22 Apr 2018 02:59:26 +0000 (22:59 -0400)
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.

src/frontends/qt4/GuiApplication.cpp

index ca2d61f507bf86fe62d39c8495bd35e975a2921f..9104b2a99397b03b3073ce1d4c167fb9193fe6e1 100644 (file)
@@ -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<Buffer *, GuiView *> views_lVisible;
                map<GuiView *, Buffer *> activeBuffers;