git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/kita/kita/trunk@1315
56b19765-1e22-0410-a548-
a0f45d66c51a
m_part = NULL;
/* create part */
- KLibFactory* factory = KLibLoader::self()->library( "libkviewviewer" )->factory();
-
- if( ! factory ){
+ KLibrary* lib = KLibLoader::self()->library( "libkviewviewer" );
+ KLibFactory* factory;
+ if( lib ) factory = lib->factory();
+ if( ! lib || ! factory ){
QMessageBox::critical( parentWidget(), i18n( " Load Error" ),
QString( i18n( "can't load libkviewviewer.") ) );
return;