summaryrefslogtreecommitdiff
path: root/src/plugins/designer/formeditorplugin.cpp
diff options
context:
space:
mode:
authordt <qtc-committer@nokia.com>2009-02-02 18:06:26 +0100
committerdt <qtc-committer@nokia.com>2009-02-02 18:06:26 +0100
commite08f1763b7534173fcb540c6ac981aae74d902c6 (patch)
treed13f833ba2b6da3234226395f7d5b19d489a6ae8 /src/plugins/designer/formeditorplugin.cpp
parent259357ed57f56b76e990d2425211b6d9dbaf34c3 (diff)
downloadqt-creator-e08f1763b7534173fcb540c6ac981aae74d902c6.tar.gz
Fixes: Workaround a bug in kde 4.2.0.
Task: Reported on irc. Details: We did regiser all plugins but didn't initialize them. Leading to the kde plugins installing a kde file dialog, but not initializing a KComponentData, which leads to a crash when trying to open a file dialog. So we aren't lazy anymore with the designer plugins. And initialize them right away. We should reenable lazy initializing once kde 4.2.1 has been released. (And probably has replaced kde 4.2.0 on most systems.)
Diffstat (limited to 'src/plugins/designer/formeditorplugin.cpp')
-rw-r--r--src/plugins/designer/formeditorplugin.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/plugins/designer/formeditorplugin.cpp b/src/plugins/designer/formeditorplugin.cpp
index 823efb590d..862b29cb46 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;