diff options
author | John Moffett <john.moff@gmail.com> | 2023-01-26 10:19:11 -0500 |
---|---|---|
committer | John Moffett <john.moff@gmail.com> | 2023-01-26 14:56:12 -0500 |
commit | 08209c039ff4ca5be4982da7a2ab7a624117ce1a (patch) | |
tree | 7e61850a3136f74414397e23090deea0070830fd /src/qt/overviewpage.h | |
parent | ab98673f058853e00c310afad57925f54c1ecfae (diff) |
Correctly limit overview transaction list
The way that the main overview page limits the number
of transactions displayed (currently 5) is not
an appropriate use of Qt. If it's run with a DEBUG
build of Qt, it'll result in a segfault in certain
relatively common situations. Instead of artificially
limiting the rowCount() in the subclassed proxy
filter, we hide/unhide the rows in the displaying
QListView upon any changes in the sorted proxy filter.
Diffstat (limited to 'src/qt/overviewpage.h')
-rw-r--r-- | src/qt/overviewpage.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/qt/overviewpage.h b/src/qt/overviewpage.h index 2ca38b78dd..5c487ee116 100644 --- a/src/qt/overviewpage.h +++ b/src/qt/overviewpage.h @@ -60,6 +60,7 @@ private: std::unique_ptr<TransactionFilterProxy> filter; private Q_SLOTS: + void LimitTransactionRows(); void updateDisplayUnit(); void handleTransactionClicked(const QModelIndex &index); void updateAlerts(const QString &warnings); |