From de1d46aa731a59d9cc602c09837439bb409dd445 Mon Sep 17 00:00:00 2001 From: Mathew Sutcliffe Date: Thu, 18 Apr 2013 23:05:28 +0100 Subject: [PATCH] #31 CApplicationContext: fixed setDebug and getDebug (thanks Roland) --- src/blackmisc/context.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()