Add support of message "_buffer_cleared"

This commit is contained in:
Sébastien Helleu 2014-05-10 12:44:37 +02:00
parent b8af54aae1
commit 8217c4e28a

View File

@ -458,6 +458,8 @@ class MainWindow(QTGUI.QMainWindow):
elif message.msgid == '_buffer_title_changed': elif message.msgid == '_buffer_title_changed':
self.buffers[index].data['title'] = item['title'] self.buffers[index].data['title'] = item['title']
self.buffers[index].update_title() self.buffers[index].update_title()
elif message.msgid == '_buffer_cleared':
self.buffers[index].widget.chat.clear()
elif message.msgid.startswith('_buffer_localvar_'): elif message.msgid.startswith('_buffer_localvar_'):
self.buffers[index].data['local_variables'] = \ self.buffers[index].data['local_variables'] = \
item['local_variables'] item['local_variables']