[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-bugs-dist
Subject: [Bug 200037] dolphin crash during simple filesystem browsing
From: Martin Koller <kollix () aon ! at>
Date: 2009-07-13 13:31:48
Message-ID: 20090713133148.77B8714AEC () immanuel ! kde ! org
[Download RAW message or body]
https://bugs.kde.org/show_bug.cgi?id=200037
--- Comment #1 from Martin Koller <kollix aon at> 2009-07-13 15:31:47 ---
I'd say the following patch solves this problem:
Index: ktooltip.cpp
===================================================================
--- ktooltip.cpp (Revision 995835)
+++ ktooltip.cpp (Arbeitskopie)
@@ -99,10 +99,12 @@
#endif
setMask(delegate()->shapeMask(option));
- QPainter p(this);
- p.setFont(option.font);
- p.setPen(QPen(option.palette.brush(QPalette::Text), 0));
- delegate()->paint(&p, option, *m_currentItem);
+ if (m_currentItem) {
+ QPainter p(this);
+ p.setFont(option.font);
+ p.setPen(QPen(option.palette.brush(QPalette::Text), 0));
+ delegate()->paint(&p, option, *m_currentItem);
+ }
}
--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic