Skip to content

Conversation

Diapolo
Copy link

@Diapolo Diapolo commented Jan 25, 2013

  • allows to directly select an address from the addressbook, chose "send
    coins" from the context menu, which sends you to sendcoins tab and fills
    in the selected address

Fixes: #2176 and #861

@BitcoinPullTester
Copy link

Automatic sanity-testing: FAILED BUILD/TEST, see http://jenkins.bluematt.me/pull-tester/cf39a9f398e190199dd453947e2724ba860b9f98 for binaries and test log.

This could happen for one of several reasons:

  1. It chanages paths in makefile.linux-mingw or otherwise changes build scripts in a way that made them incompatible with the automated testing scripts
  2. It does not build on either Linux i386 or Win32 (via MinGW cross compile)
  3. The test suite fails on either Linux i386 or Win32
  4. The block test-cases failed (lookup the first bNN identifier which failed in https://github.com/TheBlueMatt/test-scripts/blob/master/FullBlockTestGenerator.java)

@BitcoinPullTester
Copy link

Automatic sanity-testing: PASSED, see http://jenkins.bluematt.me/pull-tester/20b6c6089480e4d9ac9602dbfe5affd3f9625b23 for binaries and test log.

@Diapolo
Copy link
Author

Diapolo commented Jan 27, 2013

@luke-jr It was one of your feature-requests, can you take a look if this does what you wanted ;)?

@@ -17,6 +17,13 @@
#include "qrcodedialog.h"
#endif

// Used to pass flags to the AddressBookPage::processCtxMenuClick() function
enum CtxMenuClickFlags {
Copy link
Member

Choose a reason for hiding this comment

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

No need to make this 'flags', it can be simply an enum as you're using 'case' to distinguish the cases

Copy link
Author

Choose a reason for hiding this comment

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

Are you talking about just renaming it to to CtxMenuClick?

@Diapolo
Copy link
Author

Diapolo commented Feb 7, 2013

@laanwj Addressed your concerns :).

@BitcoinPullTester
Copy link

Automatic sanity-testing: PASSED, see http://jenkins.bluematt.me/pull-tester/b621e2841b18822247bf18dab1b614182d55086a for binaries and test log.

void AddressBookPage::onSendCoins_clicked()
{
QTableView *table = ui->tableView;
QModelIndexList indexes = table->selectionModel()->selectedRows(AddressTableModel::Address);
Copy link
Member

Choose a reason for hiding this comment

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

I see what you meant with duplicate code now. The best way to get rid of this would have been to factor out the utility code (ie, make a getSelectedIndices).
Then again, the overhead is pretty minimal, so it's not really needed.

@laanwj
Copy link
Member

laanwj commented Feb 7, 2013

ACK

@Diapolo
Copy link
Author

Diapolo commented Mar 17, 2013

@laanwj I'll rebase after the header / cpp cleanup got in, so perhaps we can also get this in soonTM.

- allows to directly select an address from the addressbook, chose "send
  coins" from the context menu, which sends you to sendcoins tab and fills
  in the selected address
@BitcoinPullTester
Copy link

Automatic sanity-testing: PASSED, see http://jenkins.bluematt.me/pull-tester/311993ab106c250a1779bfdb649cf4f8c2416fb5 for binaries and test log.

@laanwj
Copy link
Member

laanwj commented Mar 18, 2013

Yes, this one should be merged asap

laanwj added a commit that referenced this pull request Mar 19, 2013
Bitcoin-Qt: add "send coins" to context menu in addressbook
@laanwj laanwj merged commit f42720d into bitcoin:master Mar 19, 2013
laudney pushed a commit to reddcoin-project/reddcoin-3.10 that referenced this pull request Mar 19, 2014
Bitcoin-Qt: add "send coins" to context menu in addressbook
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow to send from the address book
3 participants