diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-04-02 17:36:40 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-04-02 17:36:40 +0100 |
commit | 171a011ad3a131671aeb5a98b9e3adf219ad2865 (patch) | |
tree | 0c877a3d1a37f10e37ad7168cfc52054aa0948a7 /net-p2p/bitcoin-qt/files | |
parent | 75fc75ae1f0481ffdb78450e801a9b443ba641bd (diff) |
gentoo resync : 02.04.2018
Diffstat (limited to 'net-p2p/bitcoin-qt/files')
-rw-r--r-- | net-p2p/bitcoin-qt/files/bitcoin-qt-0.16.0-fix_mempoolstats.patch | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/net-p2p/bitcoin-qt/files/bitcoin-qt-0.16.0-fix_mempoolstats.patch b/net-p2p/bitcoin-qt/files/bitcoin-qt-0.16.0-fix_mempoolstats.patch new file mode 100644 index 000000000000..95219c67982b --- /dev/null +++ b/net-p2p/bitcoin-qt/files/bitcoin-qt-0.16.0-fix_mempoolstats.patch @@ -0,0 +1,46 @@ +From 450ac607a3568f8c991df1681155de6fa7f5a5cb Mon Sep 17 00:00:00 2001 +From: Luke Dashjr <luke-jr+git@utopios.org> +Date: Fri, 23 Mar 2018 20:30:11 +0000 +Subject: [PATCH] Bugfix: GUI/MempoolStats: Avoid dereferencing NULL + +--- + src/qt/mempoolstats.cpp | 12 ++++-------- + 1 file changed, 4 insertions(+), 8 deletions(-) + +diff --git a/src/qt/mempoolstats.cpp b/src/qt/mempoolstats.cpp +index ebc72e95d0..50a3ef71ab 100644 +--- a/src/qt/mempoolstats.cpp ++++ b/src/qt/mempoolstats.cpp +@@ -79,13 +79,9 @@ void MempoolStats::setClientModel(ClientModel *model) + + void MempoolStats::drawChart() + { +- if (!isVisible()) ++ if (!(isVisible() && clientModel)) + return; + +- const bool drawTxCount = cbShowNumTxns->isChecked(); +- const bool drawMinFee = cbShowMinFeerate->isChecked(); +- const bool drawDynMemUsage = cbShowMemUsage->isChecked(); +- + if (!titleItem) + { + // create labels (only once) +@@ -349,11 +345,11 @@ void MempoolStats::drawChart() + QPen linePenRed(QColor(188,49,62, 250), 2, Qt::SolidLine, Qt::RoundCap, Qt::RoundJoin); + QPen linePenGreen(QColor(49,188,62, 250), 2, Qt::SolidLine, Qt::RoundCap, Qt::RoundJoin); + +- if (drawTxCount) ++ if (cbShowNumTxns->isChecked()) + redrawItems.append(scene->addPath(txCountPath, linePenRed)); +- if (drawMinFee) ++ if (cbShowMinFeerate->isChecked()) + redrawItems.append(scene->addPath(minFeePath, linePenGreen)); +- if (drawDynMemUsage) ++ if (cbShowMemUsage->isChecked()) + { + redrawItems.append(scene->addPath(dynMemUsagePath, linePenBlue)); + redrawItems.append(scene->addPath(dynMemUsagePathFill, QPen(Qt::NoPen), graBru)); +-- +2.16.1 + |