Fix cpu usage spiking after showing vi command bar
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.
REVIEW: 130168
BUG: 376504