statusbar: Ignore subsequent _show_prompt_widget.

If it's already shown, we don't want to mess with stuff again.
This commit is contained in:
Florian Bruhin 2014-09-30 07:13:37 +02:00
parent 52ea924cbe
commit 6b8ad67558

View File

@ -278,6 +278,8 @@ class StatusBar(QWidget):
def _show_prompt_widget(self):
"""Show prompt widget instead of temporary text."""
if self._stack.currentWidget() is self.prompt:
return
self._set_error(False)
self._set_prompt_active(True)
self._previous_widget = PreviousWidget.prompt