mirror of
https://github.com/fergalmoran/picard.git
synced 2026-04-28 07:11:23 +00:00
Fix adding files and directories from the command line.
This commit is contained in:
@@ -260,7 +260,14 @@ class Tagger(QtGui.QApplication):
|
||||
if self._autoupdate:
|
||||
self._check_version()
|
||||
if self._args:
|
||||
self.add_files(map(decode_filename, files))
|
||||
files = []
|
||||
for file in self._args:
|
||||
if os.path.isdir(file):
|
||||
self.add_directory(decode_filename(file))
|
||||
else:
|
||||
files.append(decode_filename(file))
|
||||
if files:
|
||||
self.add_files(files)
|
||||
del self._args
|
||||
|
||||
def run(self):
|
||||
|
||||
Reference in New Issue
Block a user