Changed: #1206 fixed nelContext bug

This commit is contained in:
aquiles 2010-12-06 19:29:13 +01:00
parent 819dd477d3
commit 0e4d15c5de
2 changed files with 2 additions and 2 deletions

View file

@ -53,7 +53,7 @@ void MyPlugin::execMessageBox()
void MyPlugin::setNelContext(NLMISC::INelContext *nelContext)
{
nlassert(!NLMISC::INelContext::isContextInitialised());
_LibContext = static_cast<NLMISC::CLibraryContext *>(nelContext);
_LibContext = new NLMISC::CLibraryContext(*nelContext);
}
QString MyPlugin::name() const

View file

@ -99,7 +99,7 @@ void CLogPlugin::createLogDock()
void CLogPlugin::setNelContext(NLMISC::INelContext *nelContext)
{
nlassert(!NLMISC::INelContext::isContextInitialised());
_LibContext = static_cast<NLMISC::CLibraryContext *>(nelContext);
_LibContext = new NLMISC::CLibraryContext(*nelContext);
_displayer = new NLQT::CQtDisplayer(_ui.plainTextEdit);