From b1b5db12d357898311d67089c94e07f03f2bcf86 Mon Sep 17 00:00:00 2001 From: wimpie Date: Sat, 08 Jan 2005 03:06:55 +0000 Subject: Added error message to make difference between plug loading error or plugin initialization error --- (limited to 'core/tools') diff --git a/core/tools/quicklauncher/main.cpp b/core/tools/quicklauncher/main.cpp index 5f0d80b..fbed5a1 100644 --- a/core/tools/quicklauncher/main.cpp +++ b/core/tools/quicklauncher/main.cpp @@ -117,10 +117,13 @@ public: appName = appName.mid( sep+1 ); appIface = 0; - if ( loader->queryInterface(appName, IID_QtopiaApplication, (QUnknownInterface**)&appIface) == QS_OK ) { - mainWindow = appIface->createMainWindow( appName ); + if ( loader->queryInterface(appName, IID_QtopiaApplication, (QUnknownInterface**)&appIface) != QS_OK ) { + owarn << "Plugin does not support QuickLauncher interface" << oendl; + exit(-1); } + mainWindow = appIface->createMainWindow( appName ); + if ( mainWindow ) { if ( mainWindow->metaObject()->slotNames().contains("setDocument(const QString&)") ) { app->showMainDocumentWidget( mainWindow ); -- cgit v0.9.0.2