mirror of
https://github.com/fergalmoran/picard.git
synced 2026-02-27 01:54:06 +00:00
Add explanatory comment and check for None
This commit is contained in:
@@ -225,8 +225,9 @@ class File(QtCore.QObject, Item):
|
||||
raise OSError
|
||||
|
||||
def _saving_finished(self, result=None, error=None):
|
||||
# Handle file removed
|
||||
if self.state == File.REMOVED and not result:
|
||||
# Handle file removed before save
|
||||
# Result is None if save was skipped because file was removed.
|
||||
if self.state == File.REMOVED and result is not None:
|
||||
return
|
||||
old_filename = new_filename = self.filename
|
||||
if error is not None:
|
||||
|
||||
Reference in New Issue
Block a user