summaryrefslogtreecommitdiff
path: root/libopie2
Side-by-side diff
Diffstat (limited to 'libopie2') (more/less context) (show whitespace changes)
-rw-r--r--libopie2/opiecore/oapplicationfactory.h9
1 files changed, 8 insertions, 1 deletions
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
@@ -53,8 +53,10 @@
#include <qtopia/qcom.h>
#include <qtopia/applicationinterface.h>
+#include <opie2/odebug.h>
+
namespace Opie {
namespace Core {
struct NullType;
@@ -127,11 +129,16 @@ struct OApplicationFactory : public ApplicationInterface {
virtual QWidget *createMainWindow( const QString& appName, QWidget* parent,
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 {
QStringList list;
list << Product::appName() ;