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:
blitzmann
2017-05-13 22:46:36 -04:00
parent 2e3c3e92f1
commit ffe840e245
2 changed files with 7 additions and 3 deletions

View File

@@ -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)

View File

@@ -257,6 +257,9 @@ class Fit(object):
return None
fit = eos.db.getFit(fitID)
if fit is None:
return None
if basic:
return fit