Skip to content

Commit faf62d9

Browse files
author
MarcoFalke
committed
gui: Generate bech32 addresses by default
1 parent 00ca24b commit faf62d9

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/qt/forms/receivecoinsdialog.ui

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@
189189
</widget>
190190
</item>
191191
<item>
192-
<widget class="QCheckBox" name="useBech32">
192+
<widget class="QCheckBox" name="useLegacyAddress">
193193
<property name="sizePolicy">
194194
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
195195
<horstretch>0</horstretch>
@@ -206,10 +206,10 @@
206206
<enum>Qt::StrongFocus</enum>
207207
</property>
208208
<property name="toolTip">
209-
<string>Native segwit addresses (aka Bech32 or BIP-173) reduce your transaction fees later on and offer better protection against typos, but old wallets don't support them. When unchecked, an address compatible with older wallets will be created instead.</string>
209+
<string>Native segwit addresses (aka Bech32 or BIP-173) reduce your transaction fees later on and offer better protection against typos, but old wallets don't support them. When checked, an address compatible with older wallets will be created instead.</string>
210210
</property>
211211
<property name="text">
212-
<string>Generate native segwit (Bech32) address</string>
212+
<string>Generate legacy address</string>
213213
</property>
214214
</widget>
215215
</item>
@@ -360,7 +360,7 @@
360360
<tabstops>
361361
<tabstop>reqLabel</tabstop>
362362
<tabstop>reqAmount</tabstop>
363-
<tabstop>useBech32</tabstop>
363+
<tabstop>useLegacyAddress</tabstop>
364364
<tabstop>reqMessage</tabstop>
365365
<tabstop>receiveButton</tabstop>
366366
<tabstop>clearButton</tabstop>

src/qt/receivecoinsdialog.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,9 @@ void ReceiveCoinsDialog::setModel(WalletModel *_model)
9595
columnResizingFixer = new GUIUtil::TableViewLastColumnResizingFixer(tableView, AMOUNT_MINIMUM_COLUMN_WIDTH, DATE_COLUMN_WIDTH, this);
9696

9797
if (model->wallet().getDefaultAddressType() == OutputType::BECH32) {
98-
ui->useBech32->setCheckState(Qt::Checked);
98+
ui->useLegacyAddress->setCheckState(Qt::Unchecked);
9999
} else {
100-
ui->useBech32->setCheckState(Qt::Unchecked);
100+
ui->useLegacyAddress->setCheckState(Qt::Checked);
101101
}
102102

103103
// Set the button to be enabled or disabled based on whether the wallet can give out new addresses.
@@ -150,7 +150,7 @@ void ReceiveCoinsDialog::on_receiveButton_clicked()
150150
QString label = ui->reqLabel->text();
151151
/* Generate new receiving address */
152152
OutputType address_type;
153-
if (ui->useBech32->isChecked()) {
153+
if (!ui->useLegacyAddress->isChecked()) {
154154
address_type = OutputType::BECH32;
155155
} else {
156156
address_type = model->wallet().getDefaultAddressType();

0 commit comments

Comments
 (0)