@@ -43,15 +43,6 @@ ReceiveCoinsDialog::ReceiveCoinsDialog(const PlatformStyle *_platformStyle, QWid
43
43
ui->removeRequestButton ->setIcon (_platformStyle->SingleColorIcon (" :/icons/remove" ));
44
44
}
45
45
46
- // configure bech32 checkbox, disable if launched with legacy as default:
47
- if (model->getDefaultAddressType () == OUTPUT_TYPE_BECH32) {
48
- ui->useBech32 ->setCheckState (Qt::Checked);
49
- } else {
50
- ui->useBech32 ->setCheckState (Qt::Unchecked);
51
- }
52
-
53
- ui->useBech32 ->setVisible (model->getDefaultAddressType () != OUTPUT_TYPE_LEGACY);
54
-
55
46
// context menu actions
56
47
QAction *copyURIAction = new QAction (tr (" Copy URI" ), this );
57
48
QAction *copyLabelAction = new QAction (tr (" Copy label" ), this );
@@ -102,6 +93,15 @@ void ReceiveCoinsDialog::setModel(WalletModel *_model)
102
93
SLOT (recentRequestsView_selectionChanged (QItemSelection, QItemSelection)));
103
94
// Last 2 columns are set by the columnResizingFixer, when the table geometry is ready.
104
95
columnResizingFixer = new GUIUtil::TableViewLastColumnResizingFixer (tableView, AMOUNT_MINIMUM_COLUMN_WIDTH, DATE_COLUMN_WIDTH, this );
96
+
97
+ // configure bech32 checkbox, disable if launched with legacy as default:
98
+ if (model->getDefaultAddressType () == OUTPUT_TYPE_BECH32) {
99
+ ui->useBech32 ->setCheckState (Qt::Checked);
100
+ } else {
101
+ ui->useBech32 ->setCheckState (Qt::Unchecked);
102
+ }
103
+
104
+ ui->useBech32 ->setVisible (model->getDefaultAddressType () != OUTPUT_TYPE_LEGACY);
105
105
}
106
106
}
107
107
0 commit comments