Lazily initialize designer again.

People with KDE 4.2.0 please update to 4.2.1 ...

Reviewed-by: dt
This commit is contained in:
con
2009-03-24 16:49:36 +01:00
parent eb3870875f
commit 0729ae0191

View File

@@ -100,12 +100,7 @@ bool FormEditorPlugin::initialize(const QStringList &arguments, QString *error)
m_factory = new FormEditorFactory;
addObject(m_factory);
// Make sure settings pages and action shortcuts are registered
// TODO we don't want to do a full initialization here,
// we actually want to call ensureInitStage(FormEditorW::RegisterPlugins)
// But due to a bug in kde 4.2.0 this crashes then when opening the file dialog
// This should be removed after 4.2.1 is out
FormEditorW::ensureInitStage(FormEditorW::FullyInitialized);
FormEditorW::ensureInitStage(FormEditorW::RegisterPlugins);
error->clear();
return true;