diff --git a/gui/qt/util.py b/gui/qt/util.py index d17c3c4be..c76f31c17 100644 --- a/gui/qt/util.py +++ b/gui/qt/util.py @@ -315,7 +315,7 @@ class MyTreeWidget(QTreeWidget): if text: item.setForeground(self.edit_column, QBrush(QColor('black'))) else: - text = self.wallet.get_default_label(key) + text = self.parent.wallet.get_default_label(key) item.setText(self.edit_column, text) item.setForeground(self.edit_column, QBrush(QColor('gray'))) self.is_edit = False