Skip to content

Conversation

@Diapolo
Copy link

@Diapolo Diapolo commented Oct 24, 2013

  • this allows us to use emit message() over MessageBox:: or gui->message()
    calls in sendcoinsdialog and walletview
  • move main handlePaymentRequest() functionality back to BitcoinGUI
  • move a showNormalIfMinimized() before gotoSendCoinsPage()

Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't this be gui->gotoSendCoinsPage(), to make sure that the right "tab" button is set as well?

Copy link
Member

Choose a reason for hiding this comment

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

[snip]
No longer valid after merge of new receive workflow

Copy link
Author

Choose a reason for hiding this comment

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

Will you fix them or shall I do this via this pr?

Copy link
Member

Choose a reason for hiding this comment

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

If you want to fix it in this PR that'd be easier, otherwise we'll create conflicting pulls, and it's only a two-line change.

Copy link
Author

Choose a reason for hiding this comment

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

I've got a brain-blocker I guess, this should be gui->gotoSendCoinsPage()->walletFrame->gotoSendCoinsPage()->WalletView::gotoSendCoinsPage()... im afraid, this seems still too complex ^^.

Copy link
Member

Choose a reason for hiding this comment

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

There is another, better way to go at this; split up the function.
Put the top level handling back in bitcoingui.cpp, where it belongs:

bool BitcoinGUI::handlePaymentRequest(const SendCoinsRecipient& recipient)
{
    // URI has to be valid
    if (walletFrame->handlePaymentRequest(recipient))
    {
        gotoSendCoinsPage();
        showNormalIfMinimized();
        return true;
    }
    else
        return false;
}

Then make the WalletView function simply

bool WalletView::handlePaymentRequest(const SendCoinsRecipient& recipient)
{
    return sendCoinsPage->handlePaymentRequest(recipient));
}

This removes all the awkwardness.

@Diapolo
Copy link
Author

Diapolo commented Oct 24, 2013

It also seems to make no sense, as you already use gui->message() anyway, why should we add a connect for message() here? I'm so much confused, need a break.

@Diapolo
Copy link
Author

Diapolo commented Oct 25, 2013

@laanwj I upated the pull with your recent suggestion and moved handlePaymentRequest() main functionality back to BitcoinGUI. Perhaps you can take another look.

- this allows us to use emit message() over MessageBox:: or gui->message()
  calls in sendcoinsdialog and walletview
- move main handlePaymentRequest() functionality back to BitcoinGUI
- move a showNormalIfMinimized() before gotoSendCoinsPage()
@BitcoinPullTester
Copy link

Automatic sanity-testing: PASSED, see http://jenkins.bluematt.me/pull-tester/2384a2864b6a0b29eec6410057aefe1fd8e7e585 for binaries and test log.
This test script verifies pulls every time they are updated. It, however, dies sometimes and fails to test properly. If you are waiting on a test, please check timestamps to verify that the test.log is moving at http://jenkins.bluematt.me/pull-tester/current/
Contact BlueMatt on freenode if something looks broken.

laanwj added a commit that referenced this pull request Oct 25, 2013
allow emit message() in sendcoinsdialog and walletview
@laanwj laanwj merged commit 0d09b3e into bitcoin:master Oct 25, 2013
jonasschnelli added a commit that referenced this pull request Nov 17, 2019
5fa28e9 refactor: Remove unused signal (Hennadii Stepanov)

Pull request description:

  `WalletView::showNormalIfMinimized()` signal was introduced in #2872 (dbc0a6a).

  The only signal emit command was removed in #3144 (2384a28)

ACKs for top commit:
  promag:
    ACK 5fa28e9.
  practicalswift:
    ACK 5fa28e9: nice find
  emilengler:
    ACK 5fa28e9
  jonasschnelli:
    utACK 5fa28e9

Tree-SHA512: 4714acf8c683594d3c00523c7b14bc6b94d469418f0cebe4f4b5266ca0e4c45c80d4caf358739eae9231ee4a69c9c902caeb35f3866b99443cf653f89d6d825b
Bushstar pushed a commit to Bushstar/omnicore that referenced this pull request Apr 8, 2020
* Fix cache usage in SelectCoinsGroupedByAddresses

* Reset cache flags in SelectCoinsGroupedByAddresses when a block is (dis)connected

* MakeCollateralAmounts should call SelectCoinsGroupedByAddresses with a limited number of inputs
Bushstar pushed a commit to Bushstar/omnicore that referenced this pull request Apr 8, 2020
* Fix cache usage in SelectCoinsGroupedByAddresses

* Reset cache flags in SelectCoinsGroupedByAddresses when a block is (dis)connected

* MakeCollateralAmounts should call SelectCoinsGroupedByAddresses with a limited number of inputs
@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.

3 participants