Fix for #1161. Can't reproduce, but I'm unsure what the root cause is (probably something firing in the wrong order). 9be4ae may also alleviate the root cause.
This commit is contained in:
@@ -2006,9 +2006,10 @@ class FitItem(SFItem.SFBrowserItem):
|
||||
if activeFit == self.fitID and not self.deleted:
|
||||
sFit = Fit.getInstance()
|
||||
fit = sFit.getFit(activeFit)
|
||||
self.timestamp = fit.modifiedCoalesce
|
||||
self.notes = fit.notes
|
||||
self.__setToolTip()
|
||||
if fit is not None: # sometimes happens when deleting fits, dunno why.
|
||||
self.timestamp = fit.modifiedCoalesce
|
||||
self.notes = fit.notes
|
||||
self.__setToolTip()
|
||||
|
||||
SFItem.SFBrowserItem.Refresh(self)
|
||||
|
||||
|
||||
@@ -257,6 +257,9 @@ class Fit(object):
|
||||
return None
|
||||
fit = eos.db.getFit(fitID)
|
||||
|
||||
if fit is None:
|
||||
return None
|
||||
|
||||
if basic:
|
||||
return fit
|
||||
|
||||
|
||||
Reference in New Issue
Block a user