From 099146a8f9d274e2c86e8191108c9fc345fdafe6 Mon Sep 17 00:00:00 2001 From: hjk Date: Wed, 18 Feb 2009 11:56:55 +0100 Subject: [PATCH] Revert "Revert "Fixes: Workaround a bug in kde 4.2.0."" This reverts commit 81a4518127d623f441e6a21238e9beea9d8ec725. --- src/plugins/designer/formeditorplugin.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/plugins/designer/formeditorplugin.cpp b/src/plugins/designer/formeditorplugin.cpp index 823efb590d1..862b29cb46e 100644 --- a/src/plugins/designer/formeditorplugin.cpp +++ b/src/plugins/designer/formeditorplugin.cpp @@ -108,7 +108,11 @@ bool FormEditorPlugin::initialize(const QStringList &arguments, QString *error) addObject(m_factory); // Make sure settings pages and action shortcuts are registered - FormEditorW::ensureInitStage(FormEditorW::RegisterPlugins); + // 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); error->clear(); return true;