tdon't set column width in update, but only in create - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 242bd5fb610d9d543070716424a47736c0bf5356 DIR parent 8685d749a3b7329ca318aa1ce1d2c9c440b26853 HTML Author: ThomasV <thomasv@gitorious> Date: Thu, 12 Jun 2014 22:51:39 +0200 don't set column width in update, but only in create Diffstat: M gui/qt/main_window.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) --- DIR diff --git a/gui/qt/main_window.py b/gui/qt/main_window.py t@@ -1045,6 +1045,8 @@ class ElectrumWindow(QMainWindow): def create_receive_tab(self): l, w = self.create_list_tab([ _('Address'), _('Label'), _('Balance'), _('Tx')]) + for i,width in enumerate(self.column_widths['receive']): + l.setColumnWidth(i, width) l.setContextMenuPolicy(Qt.CustomContextMenu) l.customContextMenuRequested.connect(self.create_receive_menu) l.setSelectionMode(QAbstractItemView.ExtendedSelection) t@@ -1079,7 +1081,6 @@ class ElectrumWindow(QMainWindow): l.customContextMenuRequested.connect(self.create_contact_menu) for i,width in enumerate(self.column_widths['contacts']): l.setColumnWidth(i, width) - self.connect(l, SIGNAL('itemDoubleClicked(QTreeWidgetItem*, int)'), lambda a, b: self.address_label_clicked(a,b,l,0,1)) self.connect(l, SIGNAL('itemChanged(QTreeWidgetItem*, int)'), lambda a,b: self.address_label_changed(a,b,l,0,1)) self.contacts_list = l t@@ -1327,8 +1328,6 @@ class ElectrumWindow(QMainWindow): l.insertChild = l.insertTopLevelItem l.clear() - for i,width in enumerate(self.column_widths['receive']): - l.setColumnWidth(i, width) accounts = self.wallet.get_accounts() if self.current_account is None: