diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-03-23 11:28:38 +0100 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-03-23 11:28:52 +0100 |
commit | d3c3210fa376a9c1ce55c537a3f4439202783624 (patch) | |
tree | 7f41194afdd9b5f99190df5cd98f4922952400ae | |
parent | 9c6f7071726141a6843aec0983c243dd95496113 (diff) | |
parent | ab1edd44d83a0e710d9d41471399c417ede0b0bd (diff) |
Merge pull request #3927
ab1edd4 [Qt] Fix enable/disable show and remove buttons (Cozz Lovan)
-rw-r--r-- | src/qt/receivecoinsdialog.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/qt/receivecoinsdialog.cpp b/src/qt/receivecoinsdialog.cpp index f630324947..007b13d648 100644 --- a/src/qt/receivecoinsdialog.cpp +++ b/src/qt/receivecoinsdialog.cpp @@ -65,10 +65,6 @@ void ReceiveCoinsDialog::setModel(WalletModel *model) { model->getRecentRequestsTableModel()->sort(RecentRequestsTableModel::Date, Qt::DescendingOrder); connect(model->getOptionsModel(), SIGNAL(displayUnitChanged(int)), this, SLOT(updateDisplayUnit())); - connect(ui->recentRequestsView->selectionModel(), - SIGNAL(selectionChanged(QItemSelection, QItemSelection)), - this, - SLOT(on_recentRequestsView_selectionChanged(QItemSelection, QItemSelection))); updateDisplayUnit(); QTableView* tableView = ui->recentRequestsView; @@ -82,6 +78,11 @@ void ReceiveCoinsDialog::setModel(WalletModel *model) tableView->setColumnWidth(RecentRequestsTableModel::Date, DATE_COLUMN_WIDTH); tableView->setColumnWidth(RecentRequestsTableModel::Label, LABEL_COLUMN_WIDTH); + connect(tableView->selectionModel(), + SIGNAL(selectionChanged(QItemSelection, QItemSelection)), + this, + SLOT(on_recentRequestsView_selectionChanged(QItemSelection, QItemSelection))); + //(last 2 columns are set when the table geometry is ready) by the columnResizingFixer. columnResizingFixer = new GUIUtil::TableViewLastColumnResizingFixer(tableView, AMOUNT_MINIMUM_COLUMN_WIDTH, DATE_COLUMN_WIDTH); } |