aboutsummaryrefslogtreecommitdiff
path: root/src/qt
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2011-06-30 21:11:51 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2011-06-30 21:11:51 +0200
commit8b040f812af19aff3d3f408a604c17851ac3bf51 (patch)
treeff31f26764e37104412221e90a3839576f71e4c7 /src/qt
parentc16eb949450a573baf4c5f868f58d870b3b34ab2 (diff)
fix sorting in address table dialog
Diffstat (limited to 'src/qt')
-rw-r--r--src/qt/addressbookdialog.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/qt/addressbookdialog.cpp b/src/qt/addressbookdialog.cpp
index 4f99a3c7ea..ce9c6a5338 100644
--- a/src/qt/addressbookdialog.cpp
+++ b/src/qt/addressbookdialog.cpp
@@ -46,6 +46,8 @@ void AddressBookDialog::setModel(AddressTableModel *model)
receive_model->setFilterRole(AddressTableModel::TypeRole);
receive_model->setFilterFixedString(AddressTableModel::Receive);
ui->receiveTableView->setModel(receive_model);
+ ui->receiveTableView->sortByColumn(0, Qt::AscendingOrder);
+
// Send filter
QSortFilterProxyModel *send_model = new QSortFilterProxyModel(this);
@@ -54,6 +56,7 @@ void AddressBookDialog::setModel(AddressTableModel *model)
send_model->setFilterRole(AddressTableModel::TypeRole);
send_model->setFilterFixedString(AddressTableModel::Send);
ui->sendTableView->setModel(send_model);
+ ui->sendTableView->sortByColumn(0, Qt::AscendingOrder);
// Set column widths
ui->receiveTableView->horizontalHeader()->resizeSection(