forked from openlp/openlp
Removed empty directories.
This commit is contained in:
parent
a32e2b9d1b
commit
79bb94c6b0
@ -877,6 +877,11 @@ class EditSongForm(QtGui.QDialog, Ui_EditSongDialog):
|
|||||||
except:
|
except:
|
||||||
log.exception('Could not remove file: %s', audio)
|
log.exception('Could not remove file: %s', audio)
|
||||||
pass
|
pass
|
||||||
|
if not files:
|
||||||
|
try:
|
||||||
|
os.rmdir(save_path)
|
||||||
|
except OSError:
|
||||||
|
log.exception(u'Could not remove directory: %s', save_path)
|
||||||
clean_song(self.manager, self.song)
|
clean_song(self.manager, self.song)
|
||||||
self.manager.save_object(self.song)
|
self.manager.save_object(self.song)
|
||||||
self.mediaitem.autoSelectId = self.song.id
|
self.mediaitem.autoSelectId = self.song.id
|
||||||
|
Loading…
Reference in New Issue
Block a user