#31 CApplicationContext: fixed setDebug and getDebug (thanks Roland)

This commit is contained in:
Mathew Sutcliffe
2013-04-18 23:05:28 +01:00
parent 9916419678
commit de1d46aa73

View File

@@ -61,12 +61,12 @@ namespace BlackMisc
CDebug *CApplicationContext::getDebug()
{
return qobject_cast<CDebug *>(singleton("CDebug"));
return IContext::singleton<CDebug>();
}
void CApplicationContext::setDebug(CDebug *debug)
{
setSingleton("CDebug", debug);
IContext::setSingleton(debug);
}
void CApplicationContext::setDefaultApplicationName()