diff --git a/src/frontends/qt4/GuiView.cpp b/src/frontends/qt4/GuiView.cpp index 483f7a0f53..a5b5bf942e 100644 --- a/src/frontends/qt4/GuiView.cpp +++ b/src/frontends/qt4/GuiView.cpp @@ -1624,7 +1624,8 @@ void GuiView::newDocument(string const & filename, bool from_template) if (b) setBuffer(b); // Ensure the cursor is correctly positionned on screen. - view()->showCursor(); + if (view()) + view()->showCursor(); }