Commit c721304a authored by Thorbjørn Lindeijer's avatar Thorbjørn Lindeijer
Browse files

Fix for crash when doing signal completion

parent 2710abbe
...@@ -80,7 +80,6 @@ OpenEditorsWidget::OpenEditorsWidget() ...@@ -80,7 +80,6 @@ OpenEditorsWidget::OpenEditorsWidget()
OpenEditorsWidget::~OpenEditorsWidget() OpenEditorsWidget::~OpenEditorsWidget()
{ {
} }
void OpenEditorsWidget::updateCurrentItem(Core::IEditor *editor) void OpenEditorsWidget::updateCurrentItem(Core::IEditor *editor)
......
...@@ -200,7 +200,7 @@ FunctionArgumentWidget::FunctionArgumentWidget() ...@@ -200,7 +200,7 @@ FunctionArgumentWidget::FunctionArgumentWidget()
setParent(m_popupFrame); setParent(m_popupFrame);
setFocusPolicy(Qt::NoFocus); setFocusPolicy(Qt::NoFocus);
QVBoxLayout *layout = new QVBoxLayout(); QVBoxLayout *layout = new QVBoxLayout;
layout->addWidget(this); layout->addWidget(this);
layout->setMargin(0); layout->setMargin(0);
m_popupFrame->setLayout(layout); m_popupFrame->setLayout(layout);
...@@ -968,6 +968,8 @@ bool CppCodeCompletion::completeQtMethod(CPlusPlus::FullySpecifiedType, ...@@ -968,6 +968,8 @@ bool CppCodeCompletion::completeQtMethod(CPlusPlus::FullySpecifiedType,
for (unsigned i = 0; i < scope->symbolCount(); ++i) { for (unsigned i = 0; i < scope->symbolCount(); ++i) {
Symbol *member = scope->symbolAt(i); Symbol *member = scope->symbolAt(i);
if (! member->type())
continue;
Function *fun = member->type()->asFunctionType(); Function *fun = member->type()->asFunctionType();
if (! fun) if (! fun)
continue; continue;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment