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

Fix crash in right click on transfer

parent 98560a5b
No related branches found
No related tags found
No related merge requests found
...@@ -9,7 +9,7 @@ from PyQt5.QtGui import QCursor ...@@ -9,7 +9,7 @@ from PyQt5.QtGui import QCursor
from ..gen_resources.transactions_tab_uic import Ui_transactionsTabWidget from ..gen_resources.transactions_tab_uic import Ui_transactionsTabWidget
from ..models.txhistory import HistoryTableModel, TxFilterProxyModel from ..models.txhistory import HistoryTableModel, TxFilterProxyModel
from ..core.transfer import Transfer from ..core.transfer import Transfer, TransferState
from .contact import ConfigureContactDialog from .contact import ConfigureContactDialog
from .member import MemberDialog from .member import MemberDialog
from .certification import CertificationDialog from .certification import CertificationDialog
...@@ -182,7 +182,7 @@ class TransactionsTabWidget(QWidget, Ui_transactionsTabWidget): ...@@ -182,7 +182,7 @@ class TransactionsTabWidget(QWidget, Ui_transactionsTabWidget):
identity = yield from self.app.identities_registry.future_find(pubkey, self.community) identity = yield from self.app.identities_registry.future_find(pubkey, self.community)
transfer = model.sourceModel().transfers()[source_index.row()] transfer = model.sourceModel().transfers()[source_index.row()]
if state_data == Transfer.REFUSED or state_data == Transfer.TO_SEND: if state_data == TransferState.REFUSED or state_data == TransferState.TO_SEND:
send_back = QAction(self.tr("Send again"), self) send_back = QAction(self.tr("Send again"), self)
send_back.triggered.connect(self.send_again) send_back.triggered.connect(self.send_again)
send_back.setData(transfer) send_back.setData(transfer)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment