Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gui: Add missing resizeTableColumns to fix send address book column widths #2569

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/qt/sendcoinsentry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,13 @@ void SendCoinsEntry::on_pasteButton_clicked()

void SendCoinsEntry::on_addressBookButton_clicked()
{
if(!model)
if (!model)
return;
AddressBookPage dlg(AddressBookPage::ForSending, AddressBookPage::SendingTab, this);
dlg.setModel(model->getAddressTableModel());
if(dlg.exec())
dlg.open();
dlg.resizeTableColumns();
if (dlg.exec())
{
ui->payTo->setText(dlg.getReturnValue());
ui->payAmount->setFocus();
Expand Down
4 changes: 4 additions & 0 deletions src/qt/signverifymessagedialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ void SignVerifyMessageDialog::on_addressBookButton_SM_clicked()
{
AddressBookPage dlg(AddressBookPage::ForSending, AddressBookPage::ReceivingTab, this);
dlg.setModel(model->getAddressTableModel());
dlg.open();
dlg.resizeTableColumns();
if (dlg.exec())
{
setAddress_SM(dlg.getReturnValue());
Expand Down Expand Up @@ -172,6 +174,8 @@ void SignVerifyMessageDialog::on_addressBookButton_VM_clicked()
{
AddressBookPage dlg(AddressBookPage::ForSending, AddressBookPage::SendingTab, this);
dlg.setModel(model->getAddressTableModel());
dlg.open();
dlg.resizeTableColumns();
if (dlg.exec())
{
setAddress_VM(dlg.getReturnValue());
Expand Down