#48 - Show warning when using non-default fee
This commit is contained in:
@@ -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">
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user