TextEditor: Fixes crash when double clicking virtual function proposal

Ensures that the DeferredDelete event is posted from the outermost
loop level.

Change-Id: Ib74d49d35811f35659ef272d6f0e0a4508f93076
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
This commit is contained in:
Finn Brudal
2015-10-23 11:47:25 +02:00
parent 133b50ed13
commit ea278cdf34

View File

@@ -440,9 +440,9 @@ void GenericProposalWidget::notifyActivation(int index)
void GenericProposalWidget::abort()
{
deleteLater();
if (isVisible())
close();
deleteLater();
}
bool GenericProposalWidget::updateAndCheck(const QString &prefix)