[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: koffice/kexi/widget
From: Adam Pigg <adam () piggz ! co ! uk>
Date: 2010-09-14 21:28:34
Message-ID: 20100914212834.C722FAC871 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1175378 by piggz:
Allow the groups to be filtered by class, and dont crash if there is no groupitem.
M +2 -2 KexiProjectModel.cpp
--- trunk/koffice/kexi/widget/KexiProjectModel.cpp #1175377:1175378
@@ -56,7 +56,7 @@
KexiPart::Part *p = Kexi::partManager().part(info);
if (p) {
KexiProjectModelItem *groupItem = 0;
- if (m_itemsPartClass.isEmpty()) {
+ if (m_itemsPartClass.isEmpty() || m_itemsPartClass == info->partClass()) {
groupItem = addGroup(*info, m_rootItem);
if (!groupItem) {
continue;
@@ -75,7 +75,7 @@
foreach(KexiPart::Item *item, *item_dict) {
KexiProjectModelItem *itm = addItem(*item, *info, groupItem);
- if (itm) {
+ if (itm && groupItem) {
groupItem->appendChild(itm);
}
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic