AttributeError: 'NoneType' object has no attribute 'canonicalFilePath'
Bug #401032 reported by
Mitsuhiro Koga
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar Explorer |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
bzr-explorer: revno171
bzr: 1.16.1
To reproduce:
1) Open a branch with bazaar-explorer.
2) Push edit button without selecting any file.
or
1) Open two branch with bazaar-explorer.
2) Select a file in WT.
3) Switch another branch.
4) Push edit button without selecting any file.
Traceback (most recent call last):
File "/Users/
path = fileinfo.
AttributeError: 'NoneType' object has no attribute 'canonicalFilePath'
Related branches
Changed in bzr-explorer: | |
milestone: | none → 0.5 |
To post a comment you must log in.
I think that you should invalidate the edit button, when the item has not been selected.
And, after the branch is switched, the selection has been released.
=== modified file lib/wt_browser.py
self. stacked. setCurrentIndex (1) index(path)
self. view.setRootInd ex(index) selectionModel( ).reset( )
self. _selected_ fileinfo = None button. setEnabled( False)
--- lib/wt_browser.py 2009-07-16 12:31:36 +0000
+++ lib/wt_browser.py 2009-07-18 09:56:41 +0000
@@ -152,9 +152,13 @@
index = self.model.
+ self.view.
self._root = path
+ self._edit_