diff --git a/src/frontends/qt4/GuiLyXFiles.cpp b/src/frontends/qt4/GuiLyXFiles.cpp index ab633de864..9b92de2d89 100644 --- a/src/frontends/qt4/GuiLyXFiles.cpp +++ b/src/frontends/qt4/GuiLyXFiles.cpp @@ -42,7 +42,8 @@ namespace { QString const guiString(QString in) { - return in.replace("%26", "&").replace("%28", "(").replace("%29", ")"); + // recode specially encoded chars in file names + return in.replace('_', ' ').replace("%26", "&").replace("%28", "(").replace("%29", ")"); } } // namespace anon