[Bug 159369] New: KCategorizedView segfaults without a proxy model or category drawer
David Benjamin
dnas.dnas at gmail.com
Sat Mar 15 19:34:24 CET 2008
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=159369
Summary: KCategorizedView segfaults without a proxy model or
category drawer
Product: kdelibs
Version: unspecified
Platform: Compiled Sources
OS/Version: Linux
Status: UNCONFIRMED
Severity: crash
Priority: NOR
Component: kdeui
AssignedTo: kdelibs-bugs kde org
ReportedBy: dnas.dnas gmail com
Version: (using Devel)
Installed from: Compiled sources
OS: Linux
I was playing with KCategorizedView and noticed that it crashes with a segfault when the supplied model is not a KCategorizedSortFilterProxyModel (and thus m_proxyModel is NULL). The crashes occur when one single-clicks an entry, or double-clicks to rename it.
(There are parts of the code that check of m_proxyModel is NULL, so I assume this usage of the class is meant to be valid.)
Patch attached below.
The same also occurs when no KCategoryDrawer is supplied, but I'm not sure how to fix that.
More information about the Kdelibs-bugs
mailing list