From fac2b37d8cf8dad8e821de541b9c40ee2ae0a0b8 Mon Sep 17 00:00:00 2001 From: Gabriel Ferreira Date: Thu, 11 Jun 2020 23:39:13 -0300 Subject: [PATCH] Postpone file moves until tracks have been loaded --- picard/tagger.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/picard/tagger.py b/picard/tagger.py index 659aaec59..6b65476bd 100644 --- a/picard/tagger.py +++ b/picard/tagger.py @@ -361,7 +361,7 @@ class Tagger(QtWidgets.QApplication): """Move `file` to recording `recordingid` on album `albumid`.""" self.window.setUpdatesEnabled(False) album = self.load_album(albumid) - file.move(album.unmatched_files) + album.run_when_loaded(partial(file.move, album.unmatched_files)) album.run_when_loaded(partial(album.match_files, [file], recordingid=recordingid)) self.window.setUpdatesEnabled(True)