Reload list on exit of Song import regardless of user action

Fixes: https://launchpad.net/bugs/1015528
This commit is contained in:
Tim Bentley 2012-06-26 05:40:07 +01:00
parent 93e6e45981
commit 4e1fc4cb0d
1 changed files with 3 additions and 2 deletions

View File

@ -338,8 +338,9 @@ class SongMediaItem(MediaManagerItem):
def onImportClick(self):
if not hasattr(self, u'importWizard'):
self.importWizard = SongImportForm(self, self.plugin)
if self.importWizard.exec_() == QtGui.QDialog.Accepted:
Receiver.send_message(u'songs_load_list')
self.importWizard.exec_()
# Run song load as list may have been cancelled but some songs loaded
Receiver.send_message(u'songs_load_list')
def onExportClick(self):
if not hasattr(self, u'exportWizard'):