summaryrefslogtreecommitdiff
path: root/core/tools
authorwimpie <wimpie>2005-01-08 03:06:55 (UTC)
committer wimpie <wimpie>2005-01-08 03:06:55 (UTC)
commitb1b5db12d357898311d67089c94e07f03f2bcf86 (patch) (side-by-side diff)
tree0e854083cf30eb23c720ffed2435c7f0e5bcaaad /core/tools
parent51413c5e05da7a0b233e2456d2e3f111ea20fbf6 (diff)
downloadopie-b1b5db12d357898311d67089c94e07f03f2bcf86.zip
opie-b1b5db12d357898311d67089c94e07f03f2bcf86.tar.gz
opie-b1b5db12d357898311d67089c94e07f03f2bcf86.tar.bz2
Added error message to make difference between plug loading error
or plugin initialization error
Diffstat (limited to 'core/tools') (more/less context) (ignore whitespace changes)
-rw-r--r--core/tools/quicklauncher/main.cpp7
1 files changed, 5 insertions, 2 deletions
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 );