Wallet refreshes save unfinished address labels and reset list position #1084

Open
opened 2026-11-09 00:25:02 +00:00 by jarolrod · 0 comments
jarolrod commented 2026-11-09 00:25:02 +00:00 (Migrated from github.com)

An incoming payment can interrupt an active inline label edit in Addresses and persist the unfinished text. The user has not pressed Enter or moved focus themselves.

To reproduce:

  1. Open Wallet settings → Addresses in a wallet with several labelled addresses.
  2. Enable Show used addresses.
  3. Edit an inline label and type incoming prefix. Leave the field focused.
  4. Send a payment to a different, already-used address in the same wallet.
  5. After the wallet updates, continue typing without clicking the field again.

The editor loses focus and the wallet saves incoming prefix as the label. Further typing no longer extends it.

The same refresh mechanism also loses list position. With a sufficiently long list, incoming payments or confirmations return Addresses, View coins and Manual selection to the top. Saving an address label or locking a coin can also reset the corresponding list. Selected coins remained selected in the tested Manual selection case.

Background updates should preserve the active editor, cursor and list position. They should not cause an unfinished edit to be committed.

AddressListModel::rebuild() resets the entire model, replacing its delegates. The label field then follows its normal onEditingFinished save path.

Observed on merged qt6 at 6e54a48ab571, macOS / Qt 6.9, using the full application with offscreen regtest fixtures. Related to #971, #974 and #990.

An incoming payment can interrupt an active inline label edit in Addresses and persist the unfinished text. The user has not pressed Enter or moved focus themselves. To reproduce: 1. Open **Wallet settings → Addresses** in a wallet with several labelled addresses. 2. Enable **Show used addresses**. 3. Edit an inline label and type `incoming prefix`. Leave the field focused. 4. Send a payment to a different, already-used address in the same wallet. 5. After the wallet updates, continue typing without clicking the field again. The editor loses focus and the wallet saves `incoming prefix` as the label. Further typing no longer extends it. The same refresh mechanism also loses list position. With a sufficiently long list, incoming payments or confirmations return Addresses, View coins and Manual selection to the top. Saving an address label or locking a coin can also reset the corresponding list. Selected coins remained selected in the tested Manual selection case. Background updates should preserve the active editor, cursor and list position. They should not cause an unfinished edit to be committed. [`AddressListModel::rebuild()`](https://github.com/bitcoin-core/gui-qml/blob/6e54a48ab571cb46b813eb1d98a301401089192f/qml/models/addresslistmodel.cpp#L197) resets the entire model, replacing its delegates. The label field then follows its normal [`onEditingFinished` save path](https://github.com/bitcoin-core/gui-qml/blob/6e54a48ab571cb46b813eb1d98a301401089192f/qml/pages/wallet/AddressRow.qml#L127). Observed on merged `qt6` at `6e54a48ab571`, macOS / Qt 6.9, using the full application with offscreen regtest fixtures. Related to [#971](https://github.com/bitcoin-core/gui-qml/issues/971), [#974](https://github.com/bitcoin-core/gui-qml/issues/974) and [#990](https://github.com/bitcoin-core/gui-qml/pull/990).
Sign in to join this conversation.
No description provided.