Fix CPU usage spiking after showing vi command bar

Review Request #130168 - Created July 1, 2017 and submitted

Information
Martin Tobias Holmedahl Sandsmark
ktexteditor
376504
Reviewers
kate
sstjames

With Qt 5.9 (at least), QCoreApplication::hasPendingEvents() (which is already marked as obsolete) seems to unconditionally return true, at least here. The looping didn't make sense at all anyways.

Everything works just fine, and the CPU usage doesn't spike.

Martin Tobias Holmedahl Sandsmark
Simon St James
Simon St James
Christoph Cullmann
Martin Tobias Holmedahl Sandsmark
Review request changed

Status: Closed (submitted)

Change Summary:

Submitted with commit 86f75f4f384ad9e0308c817dc4e3cbda176c2f9b by Martin T. H. Sandsmark to branch master.
Loading...