Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix - don't allow multiple dialogs for same tx in TransactionView #817

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pablomartin4btc
Copy link
Contributor

Limit to one the transaction details dialogs that a user can open.

Currently a user can open unlimited tx details dialogs for the same tx id.

Peek 2024-04-12 00-50

This PR fixes the issue.

Peek 2024-04-12 00-37

@DrahtBot
Copy link
Contributor

DrahtBot commented Apr 12, 2024

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Reviews

See the guideline for information on the review process.

Type Reviewers
ACK alfonsoromanz
Stale ACK BrandonOdiwuor

If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.

@DrahtBot
Copy link
Contributor

🚧 At least one of the CI tasks failed. Make sure to run all tests locally, according to the
documentation.

Possibly this is due to a silent merge conflict (the changes in this pull request being
incompatible with the current code in the target branch). If so, make sure to rebase on the latest
commit of the target branch.

Leave a comment here, if you need help tracking down a confusing failure.

Debug: https://github.com/bitcoin-core/gui/runs/23737775174

@flack
Copy link
Contributor

flack commented Apr 12, 2024

would be nice if a click on a row where the dialog is already open would bring that dialog to the foreground

@pablomartin4btc
Copy link
Contributor Author

would be nice if a click on a row where the dialog is already open would bring that dialog to the foreground

Great suggestion! I'll try that since I have to fix a lint. Thanks!

@pablomartin4btc pablomartin4btc force-pushed the gui-fix-tx-view-only-one-dialog-per-tx-id branch from dbbec32 to b26d2e8 Compare April 12, 2024 15:16
@pablomartin4btc
Copy link
Contributor Author

Updates:

  • Fixed lint failure.
  • Bring an already open dialog to the foreground as @flack suggested.

Copy link
Contributor

@alfonsoromanz alfonsoromanz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested ACK b26d2e8. Only one dialog is opened for a single tx.

src/qt/transactionview.cpp Show resolved Hide resolved
Copy link
Contributor

@BrandonOdiwuor BrandonOdiwuor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested ACK b26d2e8

Tested successfully on Ubuntu 22.04.4 LTS. Only one dialogue is created per transaction and the clicked transaction is brought to the foreground

Screencast.from.24-04-2024.03.35.10.ALASIRI.webm

@luke-jr
Copy link
Member

luke-jr commented May 7, 2024

Why?

Only one tx details dialog that a user can open per tx id is enough.
@pablomartin4btc pablomartin4btc force-pushed the gui-fix-tx-view-only-one-dialog-per-tx-id branch from b26d2e8 to ba13f10 Compare May 10, 2024 22:38
@pablomartin4btc
Copy link
Contributor Author

Why?

Discussed a bit offline... Please feel free to add more context here and any concerns you have.

@pablomartin4btc
Copy link
Contributor Author

Updates:

Copy link
Contributor

@alfonsoromanz alfonsoromanz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re ACK ba13f10. I tested in Mac and now the dialog is brought to the foreground

pr.mov

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants