Browse Source

#48 - Show warning when using non-default fee

import_zecw
Aditya Kulkarni 6 years ago
parent
commit
4df615509f
  1. 13
      src/confirm.ui
  2. 7
      src/sendtab.cpp

13
src/confirm.ui

@ -146,6 +146,19 @@
</property>
</spacer>
</item>
<item>
<widget class="QLabel" name="warningLabel">
<property name="styleSheet">
<string notr="true">color: red;</string>
</property>
<property name="text">
<string>You are using a custom fee. Since fees are publically visible, you are giving up some privacy. Please use this only if you know what you are doing!</string>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="Line" name="line">
<property name="orientation">

7
src/sendtab.cpp

@ -490,6 +490,13 @@ bool MainWindow::confirmTx(Tx tx) {
minerFeeUSD->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
confirm.gridLayout->addWidget(minerFeeUSD, i, 2, 1, 1);
minerFeeUSD->setText(Settings::getUSDFormat(tx.fee));
if (tx.fee == Settings::getMinerFee()) {
// Default fee
confirm.warningLabel->setVisible(false);
} else {
confirm.warningLabel->setVisible(true);
}
}
// And FromAddress in the confirm dialog

Loading…
Cancel
Save