]> jfr.im git - irc/weechat/qweechat.git/blobdiff - src/qweechat/buffer.py
Use OrderedDict (if python >= 2.7) to display ordered dicts in objects (debug window...
[irc/weechat/qweechat.git] / src / qweechat / buffer.py
index 82f580644f320c137d136b6b1e865565c1c6a1c2..704abce166c437a3532cd306c2e6f780c778eabd 100644 (file)
@@ -1,7 +1,9 @@
 #!/usr/bin/python
 # -*- coding: utf-8 -*-
 #
-# Copyright (C) 2011 Sebastien Helleu <flashcode@flashtux.org>
+# buffer.py - management of WeeChat buffers/nicklist
+#
+# Copyright (C) 2011-2013 Sebastien Helleu <flashcode@flashtux.org>
 #
 # This file is part of QWeeChat, a Qt remote GUI for WeeChat.
 #
 # along with QWeeChat.  If not, see <http://www.gnu.org/licenses/>.
 #
 
-#
-# Buffers.
-#
-
 import qt_compat
 QtCore = qt_compat.import_module('QtCore')
 QtGui = qt_compat.import_module('QtGui')
@@ -162,7 +160,7 @@ class Buffer(QtCore.QObject):
     def update_title(self):
         """Update title."""
         try:
-            self.widget.set_title(color.remove(self.data['title']))
+            self.widget.set_title(color.remove(self.data['title'].decode('utf-8')))
         except:
             self.widget.set_title(None)