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

Fixes #76 exception when context menu in members date columns

parent 392fa9f5
No related branches found
No related tags found
No related merge requests found
...@@ -55,7 +55,7 @@ class CommunityTabWidget(QWidget, Ui_CommunityTabWidget): ...@@ -55,7 +55,7 @@ class CommunityTabWidget(QWidget, Ui_CommunityTabWidget):
def member_context_menu(self, point): def member_context_menu(self, point):
index = self.table_community_members.indexAt(point) index = self.table_community_members.indexAt(point)
model = self.table_community_members.model() model = self.table_community_members.model()
if index.row() < model.rowCount(): if index.row() < model.rowCount() and index.column() < model.columnCount() - 2:
source_index = model.mapToSource(index) source_index = model.mapToSource(index)
pubkey_col = model.sourceModel().columns.index('Pubkey') pubkey_col = model.sourceModel().columns.index('Pubkey')
pubkey_index = model.sourceModel().index(source_index.row(), pubkey_index = model.sourceModel().index(source_index.row(),
......
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