Merge pull request #3135 from Diapolo/bitcoingui
bitcoingui: show main window (if hidden) on modal messages
This commit is contained in:
commit
faf923f06a
1 changed files with 6 additions and 5 deletions
|
@ -643,6 +643,8 @@ void BitcoinGUI::message(const QString &title, const QString &message, unsigned
|
||||||
if (!(buttons = (QMessageBox::StandardButton)(style & CClientUIInterface::BTN_MASK)))
|
if (!(buttons = (QMessageBox::StandardButton)(style & CClientUIInterface::BTN_MASK)))
|
||||||
buttons = QMessageBox::Ok;
|
buttons = QMessageBox::Ok;
|
||||||
|
|
||||||
|
// Ensure we get users attention
|
||||||
|
showNormalIfMinimized();
|
||||||
QMessageBox mBox((QMessageBox::Icon)nMBoxIcon, strTitle, message, buttons, this);
|
QMessageBox mBox((QMessageBox::Icon)nMBoxIcon, strTitle, message, buttons, this);
|
||||||
int r = mBox.exec();
|
int r = mBox.exec();
|
||||||
if (ret != NULL)
|
if (ret != NULL)
|
||||||
|
@ -694,8 +696,7 @@ void BitcoinGUI::askFee(qint64 nFeeRequired, bool *payFee)
|
||||||
QString strMessage = tr("This transaction is over the size limit. You can still send it for a fee of %1, "
|
QString strMessage = tr("This transaction is over the size limit. You can still send it for a fee of %1, "
|
||||||
"which goes to the nodes that process your transaction and helps to support the network. "
|
"which goes to the nodes that process your transaction and helps to support the network. "
|
||||||
"Do you want to pay the fee?").arg(BitcoinUnits::formatWithUnit(clientModel->getOptionsModel()->getDisplayUnit(), nFeeRequired));
|
"Do you want to pay the fee?").arg(BitcoinUnits::formatWithUnit(clientModel->getOptionsModel()->getDisplayUnit(), nFeeRequired));
|
||||||
QMessageBox::StandardButton retval = QMessageBox::question(
|
QMessageBox::StandardButton retval = QMessageBox::question(this, tr("Confirm transaction fee"), strMessage,
|
||||||
this, tr("Confirm transaction fee"), strMessage,
|
|
||||||
QMessageBox::Yes | QMessageBox::Cancel, QMessageBox::Yes);
|
QMessageBox::Yes | QMessageBox::Cancel, QMessageBox::Yes);
|
||||||
*payFee = (retval == QMessageBox::Yes);
|
*payFee = (retval == QMessageBox::Yes);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue