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();
_______________________________________________
Qt-creator mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-creator