When all fits failed to import, do not crash thread

This commit is contained in:
DarkPhoenix
2011-10-18 01:33:32 +04:00
parent 029890b97e
commit 41dea3967a

View File

@@ -60,7 +60,9 @@ class FitImportThread(threading.Thread):
paths = self.paths
sFit = Fit.getInstance()
for path in paths:
importedFits += sFit.importFit(path)
pathImported = sFit.importFit(path)
if pathImported is not None:
importedFits += pathImported
wx.CallAfter(self.callback, importedFits)
class Fit(object):