diff --git a/doric-Qt/doric/DoricContextManager.cpp b/doric-Qt/doric/DoricContextManager.cpp index ecb8746a..7138648a 100644 --- a/doric-Qt/doric/DoricContextManager.cpp +++ b/doric-Qt/doric/DoricContextManager.cpp @@ -12,5 +12,5 @@ DoricContext *DoricContextManager::createContext(QString script, QString source, } DoricContext *DoricContextManager::getContext(QString contextId) { - return contextMap->take(contextId); + return contextMap->value(contextId); }