From f949c04cd27631f6e48b24f2f6a4d2340e988915 Mon Sep 17 00:00:00 2001 From: SomberNight Date: Fri, 17 Jan 2025 15:25:19 +0000 Subject: [PATCH] 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' ``` --- electrum/gui/qt/history_list.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/electrum/gui/qt/history_list.py b/electrum/gui/qt/history_list.py index 52a0dc212..2fd78a8cc 100644 --- a/electrum/gui/qt/history_list.py +++ b/electrum/gui/qt/history_list.py @@ -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: