#1235 Added condition to check that an edit control doesn't already exist

This commit is contained in:
Nyral
2019-05-30 23:40:03 +03:00
parent d29f17353e
commit 1618e28513

View File

@@ -7733,8 +7733,9 @@ class CustomTreeCtrl(wx.ScrolledWindow):
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):