[Commits] (john) - Fixed bug #1931
commits at osafoundation.org
commits at osafoundation.org
Thu Sep 16 12:48:42 PDT 2004
Commit by: john
Modified files:
chandler/parcels/osaf/views/main/SideBar.py 1.18 1.19
Log message:
- Fixed bug #1931
ViewCVS links:
http://cvs.osafoundation.org/index.cgi/chandler/parcels/osaf/views/main/SideBar.py.diff?r1=text&tr1=1.18&r2=text&tr2=1.19
Index: chandler/parcels/osaf/views/main/SideBar.py
diff -u chandler/parcels/osaf/views/main/SideBar.py:1.18 chandler/parcels/osaf/views/main/SideBar.py:1.19
--- chandler/parcels/osaf/views/main/SideBar.py:1.18 Fri Sep 10 16:36:17 2004
+++ chandler/parcels/osaf/views/main/SideBar.py Thu Sep 16 12:48:40 2004
@@ -1,5 +1,5 @@
-__version__ = "$Revision: 1.18 $"
-__date__ = "$Date: 2004/09/10 23:36:17 $"
+__version__ = "$Revision: 1.19 $"
+__date__ = "$Date: 2004/09/16 19:48:40 $"
__copyright__ = "Copyright (c) 2003 Open Source Applications Foundation"
__license__ = "http://osafoundation.org/Chandler_0.1_license_terms.htm"
@@ -35,9 +35,14 @@
self.contents.beginUpdate()
for view in self.contents:
- view.contents.removeFilterKind (None)
- if kindParameter:
- view.contents.addFilterKind (kindParameter)
+ try:
+ contents = view.contents
+ except AttributeError:
+ pass
+ else:
+ contents.removeFilterKind (None)
+ if kindParameter:
+ contents.addFilterKind (kindParameter)
self.contents.endUpdate()
def onRequestSelectSidebarItemEvent (self, notification):
More information about the Commits
mailing list