X-Git-Url: https://jfr.im/git/irc/weechat/qweechat.git/blobdiff_plain/67ae32043879daf9ae157c7c0a9cdee7d267bd47..e836cfb0f6b5e09e4d050d3c2e795d1577c5ea62:/src/qweechat/buffer.py diff --git a/src/qweechat/buffer.py b/src/qweechat/buffer.py index fc12d09..704abce 100644 --- a/src/qweechat/buffer.py +++ b/src/qweechat/buffer.py @@ -1,7 +1,9 @@ #!/usr/bin/python # -*- coding: utf-8 -*- # -# Copyright (C) 2011 Sebastien Helleu +# buffer.py - management of WeeChat buffers/nicklist +# +# Copyright (C) 2011-2013 Sebastien Helleu # # This file is part of QWeeChat, a Qt remote GUI for WeeChat. # @@ -19,15 +21,12 @@ # along with QWeeChat. If not, see . # -# -# Buffers. -# - import qt_compat QtCore = qt_compat.import_module('QtCore') QtGui = qt_compat.import_module('QtGui') from chat import ChatTextEdit from input import InputLineEdit +import weechat.color as color class GenericListWidget(QtGui.QListWidget): @@ -161,7 +160,7 @@ class Buffer(QtCore.QObject): def update_title(self): """Update title.""" try: - self.widget.set_title(self.data['title']) + self.widget.set_title(color.remove(self.data['title'].decode('utf-8'))) except: self.widget.set_title(None)