Clear temporary text on keypress.

This commit is contained in:
Florian Bruhin 2014-02-19 13:28:18 +01:00
parent c57e78b765
commit ab87c8e8b9
2 changed files with 7 additions and 0 deletions

View File

@ -106,6 +106,8 @@ class QuteBrowser(QApplication):
self.setQuitOnLastWindowClosed(False) self.setQuitOnLastWindowClosed(False)
self.lastWindowClosed.connect(self.shutdown) self.lastWindowClosed.connect(self.shutdown)
self.mainwindow.tabs.keypress.connect(
self.mainwindow.status.txt.clear_tmp)
self.mainwindow.tabs.keypress.connect(self.keyparser.handle) self.mainwindow.tabs.keypress.connect(self.keyparser.handle)
self.keyparser.set_cmd_text.connect( self.keyparser.set_cmd_text.connect(
self.mainwindow.status.cmd.set_cmd_text) self.mainwindow.status.cmd.set_cmd_text)

View File

@ -525,6 +525,11 @@ class _Text(TextBase):
""" """
self.temporary = txt self.temporary = txt
@pyqtSlot()
def clear_tmp(self):
"""Clear a temporary text."""
self.temporary = ''
class _KeyString(TextBase): class _KeyString(TextBase):