Skip to content
Snippets Groups Projects
Commit 2851920f authored by Vincent Texier's avatar Vincent Texier
Browse files

Context menu on transactions table work again

parent ef168568
Branches
Tags
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment