Skip to content
Snippets Groups Projects
Commit e144dc5a authored by inso's avatar inso
Browse files

Fix bug #314

parent 26872d1b
No related branches found
No related tags found
No related merge requests found
......@@ -100,7 +100,7 @@ class IdentitiesTabWidget(QWidget, Ui_IdentitiesTab):
def identity_context_menu(self, point):
index = self.table_identities.indexAt(point)
model = self.table_identities.model()
if index.row() < model.rowCount():
if index.isValid() and index.row() < model.rowCount():
source_index = model.mapToSource(index)
pubkey_col = model.sourceModel().columns_ids.index('pubkey')
pubkey_index = model.sourceModel().index(source_index.row(),
......
......@@ -171,7 +171,7 @@ class TransactionsTabWidget(QWidget, Ui_transactionsTabWidget):
def history_context_menu(self, point):
index = self.table_history.indexAt(point)
model = self.table_history.model()
if index.row() < model.rowCount(QModelIndex()):
if index.isValid() and index.row() < model.rowCount(QModelIndex()):
menu = QMenu(self.tr("Actions"), self)
source_index = model.mapToSource(index)
state_col = model.sourceModel().columns_types.index('state')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment