Decode buffer name when inserting (patch #8050)

This commit is contained in:
Gryllida A 2013-05-18 21:09:43 +09:30 committed by Sebastien Helleu
parent 265e8b8c13
commit 3c4ccb16f9

View File

@ -369,7 +369,7 @@ class MainWindow(QtGui.QMainWindow):
def insert_buffer(self, index, buf):
self.buffers.insert(index, buf)
self.list_buffers.insertItem(index, '%d. %s' % (buf.data['number'], buf.data['full_name']))
self.list_buffers.insertItem(index, '%d. %s' % (buf.data['number'], buf.data['full_name'].decode('utf-8')))
self.stacked_buffers.insertWidget(index, buf.widget)
def remove_buffer(self, index):