From 29df009cefda9bd740fcb8095f0728aa344843e1 Mon Sep 17 00:00:00 2001 From: Andre Hartmann Date: Tue, 23 Jul 2019 19:58:44 +0200 Subject: [PATCH] GenericProposalModel: Remove unneeded condition Change-Id: I60234bbf8291d950c475e45866018978d4c423a8 Reviewed-by: David Schulz --- src/plugins/texteditor/codeassist/genericproposalmodel.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/plugins/texteditor/codeassist/genericproposalmodel.cpp b/src/plugins/texteditor/codeassist/genericproposalmodel.cpp index 30d5a432019..88b7681ae09 100644 --- a/src/plugins/texteditor/codeassist/genericproposalmodel.cpp +++ b/src/plugins/texteditor/codeassist/genericproposalmodel.cpp @@ -217,8 +217,7 @@ bool GenericProposalModel::isPerfectMatch(const QString &prefix) const if (proposalItem(i)->isKeyword()) return true; - if (!hasFullMatch) - hasFullMatch = true; + hasFullMatch = true; } }