From 0729ae019175f5f6b7314572dbe49c73d0460953 Mon Sep 17 00:00:00 2001
From: con <qtc-committer@nokia.com>
Date: Tue, 24 Mar 2009 16:49:36 +0100
Subject: [PATCH] Lazily initialize designer again.

People with KDE 4.2.0 please update to 4.2.1 ...

Reviewed-by: dt
---
 src/plugins/designer/formeditorplugin.cpp | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/src/plugins/designer/formeditorplugin.cpp b/src/plugins/designer/formeditorplugin.cpp
index 3052c173585..41970ae5ae5 100644
--- a/src/plugins/designer/formeditorplugin.cpp
+++ b/src/plugins/designer/formeditorplugin.cpp
@@ -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;
-- 
GitLab