Commit 68974f2b authored by Nikolai Kosjar's avatar Nikolai Kosjar

TextEditor: Remove invalid QTC_ASSERT

...in FunctionHintProposalWidget.

Typing the opening parenthesis triggers a function completion. If the
user types the closing parenthesis before the completion results arrive,
the prefix will be recognized as ")", for which it is valid to return -1
as the active/current argument and in consequence false for
updateAndCheck().

Change-Id: I2dd2382a402f277873302acfdf6a759e7b735d3f
Reviewed-by: Eike Ziller's avatarEike Ziller <eike.ziller@qt.io>
Reviewed-by: default avatarDavid Schulz <david.schulz@theqtcompany.com>
parent a717e980
......@@ -159,7 +159,8 @@ void FunctionHintProposalWidget::showProposal(const QString &prefix)
d->m_pager->setVisible(d->m_totalHints > 1);
d->m_currentHint = 0;
QTC_ASSERT(updateAndCheck(prefix), abort(); return; );
if (!updateAndCheck(prefix))
return;
qApp->installEventFilter(this);
d->m_popupFrame->show();
......
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