forked from openlp/openlp
Fix missing path for song usage report generation
Fixes: https://launchpad.net/bugs/733271
This commit is contained in:
parent
735a6c5815
commit
f1b8e53e30
@ -88,6 +88,14 @@ class SongUsageDetailForm(QtGui.QDialog, Ui_SongUsageDetailDialog):
|
|||||||
"""
|
"""
|
||||||
log.debug(u'accept')
|
log.debug(u'accept')
|
||||||
path = unicode(self.fileLineEdit.text())
|
path = unicode(self.fileLineEdit.text())
|
||||||
|
if path == u'':
|
||||||
|
Receiver.send_message(u'openlp_error_message', {
|
||||||
|
u'title': translate('SongUsagePlugin.SongUsageDetailForm',
|
||||||
|
'Report Creation'),
|
||||||
|
u'message': unicode(translate(
|
||||||
|
'SongUsagePlugin.SongUsageDetailForm', 'No output path has been'
|
||||||
|
' selected for the report.'))})
|
||||||
|
return
|
||||||
check_directory_exists(path)
|
check_directory_exists(path)
|
||||||
filename = unicode(translate('SongUsagePlugin.SongUsageDetailForm',
|
filename = unicode(translate('SongUsagePlugin.SongUsageDetailForm',
|
||||||
'usage_detail_%s_%s.txt')) % (
|
'usage_detail_%s_%s.txt')) % (
|
||||||
|
Loading…
Reference in New Issue
Block a user