Commit c0429dbd authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Search for a valid class.

parent 369acdef
......@@ -1462,7 +1462,15 @@ bool CppCodeCompletion::completeQtMethod(const QList<LookupItem> &results,
if (classObjects.isEmpty())
continue;
Class *klass = classObjects.first()->asClass();
Class *klass = 0;
foreach (Symbol *c, classObjects) {
klass = c->asClass();
if (klass != 0)
break;
}
if (! klass)
continue;
QList<Scope *> todo;
const QList<Scope *> visibleScopes = context.visibleScopes(p);
......
Markdown is supported
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