Skip to content

Commit

Permalink
Merge pull request #1246 from Nyral/label_multiple_edit_fix
Browse files Browse the repository at this point in the history
Fixes #1235: CustomTreeCtrl edit label remains stuck forever

(cherry picked from commit 4d336e1)
  • Loading branch information
RobinD42 authored and Robin Dunn committed Sep 13, 2019
1 parent a450923 commit 53a49bd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGES.rst
Expand Up @@ -25,6 +25,8 @@ This release provides the following fixes:
* Switch to using a wx.Overlay in the Widget Inspection Tool to highlight
widgets when running on a GTK3 port.

* Fixed issue in wx.lib.agw.customtreectrl where label editor could remain
stuck forever (#1235).


4.0.6 "Applesauce"
Expand Down
5 changes: 3 additions & 2 deletions wx/lib/agw/customtreectrl.py
Expand Up @@ -7733,8 +7733,9 @@ def Edit(self, item):
if self._editCtrl != None and item != self._editCtrl.item():
self._editCtrl.StopEditing()

self._editCtrl = TreeTextCtrl(self, item=item)
self._editCtrl.SetFocus()
if self._editCtrl is None:
self._editCtrl = TreeTextCtrl(self, item=item)
self._editCtrl.SetFocus()


def GetEditControl(self):
Expand Down

0 comments on commit 53a49bd

Please sign in to comment.