forked from qt-creator/qt-creator
Fix for crash when doing signal completion
This commit is contained in:
@@ -80,7 +80,6 @@ OpenEditorsWidget::OpenEditorsWidget()
|
||||
|
||||
OpenEditorsWidget::~OpenEditorsWidget()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void OpenEditorsWidget::updateCurrentItem(Core::IEditor *editor)
|
||||
|
@@ -200,7 +200,7 @@ FunctionArgumentWidget::FunctionArgumentWidget()
|
||||
setParent(m_popupFrame);
|
||||
setFocusPolicy(Qt::NoFocus);
|
||||
|
||||
QVBoxLayout *layout = new QVBoxLayout();
|
||||
QVBoxLayout *layout = new QVBoxLayout;
|
||||
layout->addWidget(this);
|
||||
layout->setMargin(0);
|
||||
m_popupFrame->setLayout(layout);
|
||||
@@ -968,6 +968,8 @@ bool CppCodeCompletion::completeQtMethod(CPlusPlus::FullySpecifiedType,
|
||||
|
||||
for (unsigned i = 0; i < scope->symbolCount(); ++i) {
|
||||
Symbol *member = scope->symbolAt(i);
|
||||
if (! member->type())
|
||||
continue;
|
||||
Function *fun = member->type()->asFunctionType();
|
||||
if (! fun)
|
||||
continue;
|
||||
|
Reference in New Issue
Block a user