diff --git a/src/blackmisc/context.cpp b/src/blackmisc/context.cpp index 7ab4e673b..6cf9a80d4 100644 --- a/src/blackmisc/context.cpp +++ b/src/blackmisc/context.cpp @@ -61,12 +61,12 @@ namespace BlackMisc CDebug *CApplicationContext::getDebug() { - return qobject_cast(singleton("CDebug")); + return IContext::singleton(); } void CApplicationContext::setDebug(CDebug *debug) { - setSingleton("CDebug", debug); + IContext::setSingleton(debug); } void CApplicationContext::setDefaultApplicationName()