[LyX/master] Account for spaces in paths to templates (#12082)
Juergen Spitzmueller
spitz at lyx.org
Wed Jan 20 16:04:28 UTC 2021
commit 06605a587f098a037bb34da4bc9ff6e969f55d2e
Author: Juergen Spitzmueller <spitz at lyx.org>
Date: Wed Jan 20 17:05:10 2021 +0100
Account for spaces in paths to templates (#12082)
---
src/frontends/qt/GuiLyXFiles.cpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/frontends/qt/GuiLyXFiles.cpp b/src/frontends/qt/GuiLyXFiles.cpp
index 00c2ea0..afed230 100644
--- a/src/frontends/qt/GuiLyXFiles.cpp
+++ b/src/frontends/qt/GuiLyXFiles.cpp
@@ -600,7 +600,7 @@ void GuiLyXFiles::dispatchParams()
string arg;
if (type_ == "templates")
arg = "newfile ";
- arg += fromqstr(file_);
+ arg += quoteName(fromqstr(file_));
FuncCode const lfun = getLfun();
if (lfun == LFUN_NOACTION)
More information about the lyx-cvs
mailing list