QuickToolBar: critical bugfix

The protype chain is cached in m_prototypes,
but the type might have changed.
We have to check for this case.

Reviewed-by: Lasse Holmstedt
This commit is contained in:
Thomas Hartmann
2010-11-11 16:32:46 +01:00
parent 1d7cb01f64
commit 7b179fea73
2 changed files with 8 additions and 0 deletions

View File

@@ -157,6 +157,13 @@ void QuickToolBar::apply(TextEditor::BaseTextEditorEditable *editor, Document::P
end = objectBinding->lastSourceLocation().end();
}
if (lookupContext.isNull()) {
if (name != m_oldType)
m_prototypes.clear();
}
m_oldType = name;
m_prototypes.append(name);
int line1;