better readable coding style

This commit is contained in:
M2j 2011-10-15 23:21:22 +02:00
parent 1527704c03
commit 525658ae8b

View File

@ -157,9 +157,9 @@ class ExceptionForm(QtGui.QDialog, Ui_ExceptionDialog):
source = re.sub(r'.*[/\\]openlp[/\\](.*)".*', r'\1', line) source = re.sub(r'.*[/\\]openlp[/\\](.*)".*', r'\1', line)
if u':' in line: if u':' in line:
exception = line.split(u'\n')[-1].split(u':')[0] exception = line.split(u'\n')[-1].split(u':')[0]
subject = u'Bug report: %s in %s' % (exception, source)
mailto_url = QtCore.QUrl(u'mailto:bugs@openlp.org') mailto_url = QtCore.QUrl(u'mailto:bugs@openlp.org')
mailto_url.addQueryItem(u'subject', mailto_url.addQueryItem(u'subject', subject)
u'Bug report: %s in %s' % (exception, source))
mailto_url.addQueryItem(u'body', body % content) mailto_url.addQueryItem(u'body', body % content)
if self.fileAttachment: if self.fileAttachment:
mailto_url.addQueryItem(u'attach', self.fileAttachment) mailto_url.addQueryItem(u'attach', self.fileAttachment)