https://bugs.kde.org/show_bug.cgi?id=362037

--- Comment #5 from RJVB <rjvber...@gmail.com> ---
Created attachment 102145
  --> https://bugs.kde.org/attachment.cgi?id=102145&action=edit
simple patch to prevent beachballing

It may be useful to add a processEvents() call in this function's foreach loop
too. sendPostedEvents() may not even be required there.

static ProblemPointer findProblemUnderCursor(TopDUContext* topContext,
KTextEditor::Cursor position)
{
  const auto top = ReferencedTopDUContext(topContext);
  foreach (auto problem, DUChainUtils::allProblemsForContext(top)) {
    if (problem->rangeInCurrentRevision().contains(position)) {
      return problem;
    }
  }

  return {};
}

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to