--- a/src/gldraw.cpp Thu Dec 05 23:20:50 2013 +0200 +++ b/src/gldraw.cpp Thu Dec 05 23:42:39 2013 +0200 @@ -1290,8 +1290,10 @@ // ============================================================================= // ----------------------------------------------------------------------------- -void GLRenderer::EditModeChanged() -{ switch (getEditMode()) +void GLRenderer::setEditMode (EditMode const& a) +{ m_EditMode = a; + + switch (a) { case Select: { unsetCursor(); setContextMenuPolicy (Qt::DefaultContextMenu); @@ -1326,8 +1328,10 @@ update(); } -void GLRenderer::FileChanged() -{ if (getFile() != null) +void GLRenderer::setFile (LDFile* const& a) +{ m_File = a; + + if (a != null) initOverlaysFromObjects(); }