gui/qt/history_list: (trivial) follow-up qt6 migration
ref https://github.com/spesmilo/electrum/pull/9189 ``` Traceback (most recent call last): File "/home/user/wspace/electrum/electrum/gui/qt/my_treeview.py", line 166, in on_commitData self.tv.on_edited(idx, edit_key=edit_key, text=new_text) File "/home/user/wspace/electrum/electrum/gui/qt/history_list.py", line 699, in on_edited self.hm.update_fiat(index) File "/home/user/wspace/electrum/electrum/gui/qt/history_list.py", line 371, in update_fiat self.dataChanged.emit(idx, idx, [Qt.ItemDataRole.DisplayRole, Qt.ForegroundRole]) AttributeError: type object 'Qt' has no attribute 'ForegroundRole' ```
This commit is contained in:
@@ -368,7 +368,7 @@ class HistoryModel(CustomModel, Logger):
|
||||
fiat_fields = self.window.wallet.get_tx_item_fiat(
|
||||
tx_hash=txid, amount_sat=value, fx=self.window.fx, tx_fee=fee.value if fee else None)
|
||||
tx_item.update(fiat_fields)
|
||||
self.dataChanged.emit(idx, idx, [Qt.ItemDataRole.DisplayRole, Qt.ForegroundRole])
|
||||
self.dataChanged.emit(idx, idx, [Qt.ItemDataRole.DisplayRole, Qt.ItemDataRole.ForegroundRole])
|
||||
|
||||
def update_tx_mined_status(self, tx_hash: str, tx_mined_info: TxMinedInfo):
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user