]> git.lyx.org Git - features.git/commitdiff
Fix forward search
authorKornel Benko <kornel@lyx.org>
Thu, 25 Jul 2019 08:01:03 +0000 (10:01 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 18 Jun 2020 13:48:42 +0000 (15:48 +0200)
The provided working directory was not properly set when the underlying
process starts.
It is not clear, why only this one call to one.startscript()
needs fixing. OTOH, the other calls do not use 'Systemcall::DontWait'
as the first parameter.

src/frontends/qt/GuiView.cpp

index 6e87f007f93151b27ab99bf45d5fce837529f9a4..581967fc4d6a2f2279727e0e61855bc687f1e97d 100644 (file)
@@ -4496,7 +4496,7 @@ void GuiView::dispatch(FuncRequest const & cmd, DispatchResult & dr)
                        command = subst(command, "$$t", texname);
                        command = subst(command, "$$o", outname);
 
-                       PathChanger p(path);
+                       volatile PathChanger p(path);
                        Systemcall one;
                        one.startscript(Systemcall::DontWait, command);
                        break;