[Qt-creator] segmentation fault
Mark Brand
mabrand at mabrand.nl
Fri Mar 26 09:57:58 CET 2010
Hi,
Lately the head of qt-creator master branch has been crashing with a
segmentation fault when I open a form. This patch keeps it from
crashing, but I don't know if this is the right way to fix it.
For what it's worth:
diff --git a/src/plugins/coreplugin/editortoolbar.cpp
b/src/plugins/coreplugin/editortoolbar.cpp
index 6fa3737..b32d768 100644
--- a/src/plugins/coreplugin/editortoolbar.cpp
+++ b/src/plugins/coreplugin/editortoolbar.cpp
@@ -190,6 +190,9 @@ void EditorToolBar::closeView()
void EditorToolBar::addEditor(IEditor *editor)
{
+ if (!editor)
+ return;
+
connect(editor, SIGNAL(changed()), this, SLOT(checkEditorStatus()));
QWidget *toolBar = editor->toolBar();
More information about the Qt-creator-old
mailing list