┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNate Graham <[email protected]>2020-12-18 12:22:21 -0700
committerNate Graham <[email protected]>2020-12-18 12:22:21 -0700
commit59f00343c92c60e0d413f6c3ee319acf696764f4 (patch)
tree2d98a4c803d3b266559c9e0baac3cb847b84e0fc
parentacc42f918925983e2e83501cd2bacc7952a55718 (diff)
parentef093154046f91a59bc7e0fe1f22b590f45a0b0b (diff)
Merge branch 'release/20.12'
-rw-r--r--src/panels/places/placesitemlistwidget.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/panels/places/placesitemlistwidget.cpp b/src/panels/places/placesitemlistwidget.cpp
index c9de3e6cf..2d5111c56 100644
--- a/src/panels/places/placesitemlistwidget.cpp
+++ b/src/panels/places/placesitemlistwidget.cpp
@@ -106,7 +106,8 @@ void PlacesItemListWidget::paint(QPainter* painter, const QStyleOptionGraphicsIt
{
KStandardItemListWidget::paint(painter, option, widget);
- if (m_drawCapacityBar) {
+ // We check if option=nullptr since it is null when the place is dragged (Bug #430441)
+ if (m_drawCapacityBar && option) {
const TextInfo* textInfo = m_textInfo.value("text");
if (textInfo) { // See KStandarItemListWidget::paint() for info on why we check textInfo.
painter->save();