-rw-r--r-- | core/tools/quicklauncher/main.cpp | 7 |
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 | |||
@@ -114,16 +114,19 @@ public: | |||
114 | QString appName = argv[0]; | 114 | QString appName = argv[0]; |
115 | int sep = appName.findRev( '/' ); | 115 | int sep = appName.findRev( '/' ); |
116 | if ( sep > 0 ) | 116 | if ( sep > 0 ) |
117 | appName = appName.mid( sep+1 ); | 117 | appName = appName.mid( sep+1 ); |
118 | 118 | ||
119 | appIface = 0; | 119 | appIface = 0; |
120 | if ( loader->queryInterface(appName, IID_QtopiaApplication, (QUnknownInterface**)&appIface) == QS_OK ) { | 120 | if ( loader->queryInterface(appName, IID_QtopiaApplication, (QUnknownInterface**)&appIface) != QS_OK ) { |
121 | mainWindow = appIface->createMainWindow( appName ); | 121 | owarn << "Plugin does not support QuickLauncher interface" << oendl; |
122 | exit(-1); | ||
122 | } | 123 | } |
123 | 124 | ||
125 | mainWindow = appIface->createMainWindow( appName ); | ||
126 | |||
124 | if ( mainWindow ) { | 127 | if ( mainWindow ) { |
125 | if ( mainWindow->metaObject()->slotNames().contains("setDocument(const QString&)") ) { | 128 | if ( mainWindow->metaObject()->slotNames().contains("setDocument(const QString&)") ) { |
126 | app->showMainDocumentWidget( mainWindow ); | 129 | app->showMainDocumentWidget( mainWindow ); |
127 | } else { | 130 | } else { |
128 | app->showMainWidget( mainWindow ); | 131 | app->showMainWidget( mainWindow ); |
129 | } | 132 | } |