allow emit message() in sendcoinsdialog and walletview

- 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()
This commit is contained in:
Philip Kaufmann
2013-10-24 15:49:13 +02:00
parent 081c0cdeb2
commit 2384a2864b
5 changed files with 30 additions and 17 deletions

View File

@@ -752,9 +752,17 @@ bool BitcoinGUI::eventFilter(QObject *object, QEvent *event)
return QMainWindow::eventFilter(object, event);
}
void BitcoinGUI::handlePaymentRequest(const SendCoinsRecipient& recipient)
bool BitcoinGUI::handlePaymentRequest(const SendCoinsRecipient& recipient)
{
walletFrame->handlePaymentRequest(recipient);
// URI has to be valid
if (walletFrame->handlePaymentRequest(recipient))
{
showNormalIfMinimized();
gotoSendCoinsPage();
return true;
}
else
return false;
}
void BitcoinGUI::setEncryptionStatus(int status)