TextEditor: Do not trigger autocomplete after user aborts...

... for the same function

Task-number: QTCREATORBUG-5748
Change-Id: Iadf5be76c24f95cf057c2112a8248bea2a9e20cf
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
This commit is contained in:
Orgad Shaneh
2013-09-12 00:21:12 +03:00
committed by Orgad Shaneh
parent c9a851c649
commit 1cfca29696
4 changed files with 33 additions and 4 deletions

View File

@@ -215,6 +215,7 @@ bool FunctionHintProposalWidget::eventFilter(QObject *obj, QEvent *e)
case QEvent::KeyRelease:
if (static_cast<QKeyEvent*>(e)->key() == Qt::Key_Escape && d->m_escapePressed) {
abort();
emit explicitlyAborted();
return false;
}
d->m_assistant->notifyChange();