Skip to content

Commit

Permalink
wxGUI/dbmgr: don't add new duplicated table col into table desc Table…
Browse files Browse the repository at this point in the history
…ListCtrl widget (#2437)
  • Loading branch information
tmszi committed Sep 12, 2023
1 parent 454b400 commit 9c40bb9
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions gui/wxpython/dbmgr/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -2794,14 +2794,6 @@ def OnTableItemAdd(self, event):
).GetValue()
)

# add item to the list of table columns
tlist = self.FindWindowById(self.layerPage[self.selLayer]["tableData"])

index = tlist.InsertItem(tlist.GetItemCount(), str(name))
tlist.SetItem(index, 0, str(name))
tlist.SetItem(index, 1, str(ctype))
tlist.SetItem(index, 2, str(length))

self.AddColumn(name, ctype, length)

# update widgets
Expand Down

0 comments on commit 9c40bb9

Please sign in to comment.