forked from qt-creator/qt-creator
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:
@@ -440,9 +440,9 @@ void GenericProposalWidget::notifyActivation(int index)
|
|||||||
|
|
||||||
void GenericProposalWidget::abort()
|
void GenericProposalWidget::abort()
|
||||||
{
|
{
|
||||||
|
deleteLater();
|
||||||
if (isVisible())
|
if (isVisible())
|
||||||
close();
|
close();
|
||||||
deleteLater();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool GenericProposalWidget::updateAndCheck(const QString &prefix)
|
bool GenericProposalWidget::updateAndCheck(const QString &prefix)
|
||||||
|
Reference in New Issue
Block a user