forked from openlp/openlp
Force path for Song Usage
bzr-revno: 1377 Fixes: https://launchpad.net/bugs/733271
This commit is contained in:
commit
4ad32acc82
@ -88,6 +88,15 @@ 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',
|
||||||
|
'Output Path Not Selected'),
|
||||||
|
u'message': unicode(translate(
|
||||||
|
'SongUsagePlugin.SongUsageDetailForm', 'You have not set a '
|
||||||
|
'valid output location for your song usage report. Please '
|
||||||
|
'select an existing path on your computer.'))})
|
||||||
|
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