Do not use GetItemData where we do not need it

This commit is contained in:
DarkPhoenix
2019-04-29 15:37:54 +03:00
parent e346239174
commit 72fe52e560
7 changed files with 26 additions and 25 deletions

View File

@@ -198,7 +198,7 @@ class CommandView(d.Display):
row, _ = self.HitTest(event.Position)
if row != -1:
try:
commandFit = self.fits[self.GetItemData(row)]
commandFit = self.fits[row]
except IndexError:
return
self.removeCommandFits([commandFit])
@@ -215,7 +215,7 @@ class CommandView(d.Display):
commandFits = []
for row in self.getSelectedRows():
try:
commandFit = self.fits[self.GetItemData(row)]
commandFit = self.fits[row]
except IndexError:
continue
commandFits.append(commandFit)