From 7d82b94d669746cac36dcabf026428bdc9286c72 Mon Sep 17 00:00:00 2001 From: eilers Date: Wed, 23 Mar 2005 08:31:19 +0000 Subject: Add debug output to help developer to find a very silly bug, which takes a lot of time to fix.. --- diff --git a/libopie2/opiecore/oapplicationfactory.h b/libopie2/opiecore/oapplicationfactory.h index 8516565..8cb0ddd 100644 --- a/libopie2/opiecore/oapplicationfactory.h +++ b/libopie2/opiecore/oapplicationfactory.h @@ -54,6 +54,8 @@ #include #include +#include + namespace Opie { namespace Core { struct NullType; @@ -128,8 +130,13 @@ struct OApplicationFactory : public ApplicationInterface { const char* name, Qt::WFlags f ) { if (appName == Product::appName() ) return new Product(parent, name, f ); - else + else{ + odebug << "Application Name = " << appName.latin1() << oendl; + odebug << "ProductName = " << Product::appName().latin1() << oendl; + odebug << "The application name is not equal to the product name!" << oendl; + odebug << "Please compare TARGET entry in the project file (*.pro) and the call of the OApplicationFactory< productName >" << oendl; return 0l; + } } virtual QStringList applications()const { -- cgit v0.9.0.2