#1076: makeDirTree in dTreeView crashes at invisible files
----------------------+-----------------------------------------------------
  Reporter:  hraban   |       Owner:  somebody
      Type:  defect   |      Status:  closed  
  Priority:  trivial  |   Milestone:  0.8.1   
 Component:  ui       |     Version:  0.8.x   
Resolution:  fixed    |    Keywords:          
----------------------+-----------------------------------------------------
Old description:

> The subfunction sortNode throws a KeyError if one sets showHidden=False
> and there are hidden directories. Here's a quick fix (the 'if' line):
>
> [code]
>         def sortNode(arg, currDir, fNames):
>             if currDir in self._pathNode:
>                 self.SortChildren(self._pathNode[currDir].itemID)
> [/code]
>
> (I use the latest SVN version.)

New description:

 The subfunction sortNode throws a KeyError if one sets showHidden=False
 and there are hidden directories. Here's a quick fix (the 'if' line):

 {{{
 #!python
         def sortNode(arg, currDir, fNames):
             if currDir in self._pathNode:
                 self.SortChildren(self._pathNode[currDir].itemID)
 }}}

 (I use the latest SVN version.)

-- 
Ticket URL: <http://svn.dabodev.com/trac/dabo/ticket/1076#comment:2>
Dabo <http://svn.dabodev.com/trac/dabo>
Trac Page for Dabo


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/dabo-dev/[EMAIL PROTECTED]

Reply via email to