diff --git a/src/cutecoin/gui/currency_tab.py b/src/cutecoin/gui/currency_tab.py index 8b9ffc5fef548056802b77bb21125b9ee9500f83..623d8461afca2e5b56d86e4611967062d91b20bc 100644 --- a/src/cutecoin/gui/currency_tab.py +++ b/src/cutecoin/gui/currency_tab.py @@ -236,12 +236,12 @@ class CurrencyTabWidget(QWidget, Ui_CurrencyTabWidget): if index.row() < model.rowCount(QModelIndex()): menu = QMenu("Actions", self) source_index = model.mapToSource(index) - state_col = model.sourceModel().columns.index('State') + state_col = model.sourceModel().column_types.index('state') state_index = model.sourceModel().index(source_index.row(), state_col) state_data = model.sourceModel().data(state_index, Qt.DisplayRole) - pubkey_col = model.sourceModel().columns.index('UID/Public key') + pubkey_col = model.sourceModel().column_types.index('uid') person_index = model.sourceModel().index(source_index.row(), pubkey_col) person = model.sourceModel().data(person_index, Qt.DisplayRole)