X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fqt4%2FGuiLog.cpp;h=2ddadc9226af3b684354f14dc0578ebfe8d489c5;hb=e029b216b7e56ce3a41ef0b853045c37c7d155d8;hp=a02544dda085eef396505ca1b3f3f8d210fddc50;hpb=ba76bf5eb85db5a10839fccee3430d906d3f7b70;p=lyx.git diff --git a/src/frontends/qt4/GuiLog.cpp b/src/frontends/qt4/GuiLog.cpp index a02544dda0..2ddadc9226 100644 --- a/src/frontends/qt4/GuiLog.cpp +++ b/src/frontends/qt4/GuiLog.cpp @@ -15,9 +15,11 @@ #include "GuiApplication.h" #include "qt_helpers.h" -#include "support/gettext.h" #include "Lexer.h" +#include "support/docstring.h" +#include "support/gettext.h" + #include #include #include @@ -133,7 +135,7 @@ void GuiLog::updateContents() bool GuiLog::initialiseParams(string const & data) { istringstream is(data); - Lexer lex(0,0); + Lexer lex; lex.setStream(is); string logtype, logfile; @@ -158,6 +160,9 @@ bool GuiLog::initialiseParams(string const & data) return false; logfile_ = FileName(logfile); + + updateContents(); + return true; } @@ -231,4 +236,4 @@ Dialog * createGuiLog(GuiView & lv) { return new GuiLog(lv); } } // namespace frontend } // namespace lyx -#include "GuiLog_moc.cpp" +#include "moc_GuiLog.cpp"