Merge lp:~googol-deactivatedaccount/openlp/bug-1146964-2.0 into lp:openlp/2.0

Proposed by Andreas Preikschat
Status: Merged
Approved by: Raoul Snyman
Approved revision: 2141
Merged at revision: 2141
Proposed branch: lp:~googol-deactivatedaccount/openlp/bug-1146964-2.0
Merge into: lp:openlp/2.0
Diff against target: 51 lines (+4/-4)
4 files modified
openlp/core/ui/advancedtab.py (+1/-1)
openlp/core/ui/exceptionform.py (+1/-1)
openlp/core/ui/themeform.py (+1/-1)
openlp/plugins/images/lib/mediaitem.py (+1/-1)
To merge this branch: bzr merge lp:~googol-deactivatedaccount/openlp/bug-1146964-2.0
Reviewer Review Type Date Requested Status
Raoul Snyman Approve
Review via email: mp+154178@code.launchpad.net

Description of the change

- fixed bug 1146964 ('Attach button on exception form does not work')

Please test this (and not just review the code)... Because I am not sure why that is broken! (I mean we do this in several places and it always worked.)

To post a comment you must log in.
Revision history for this message
Andreas Preikschat (googol-deactivatedaccount) wrote :

I am not sure if the new PyQt/Qt versions cause this, because the 2.0.1 on XP works fine, but both 2.0 as well as trunk on arch linux do not work correctly.

2141. By Andreas Preikschat

replaced other file masks

Revision history for this message
Raoul Snyman (raoul-snyman) wrote :

This is something I had to figure out by trial and error. Qt uses the last set of brackets plus glob to determine the filter. If you use "All files (*.*)", then in the dialog you see "All files" and *.* is used as the filter. If you use "All files (*.*) (*)", then you see "All files (*.*)" and * is used as the filter.

Revision history for this message
Raoul Snyman (raoul-snyman) wrote :

Maybe try changing this to "(*.*) (*.*)"?

Revision history for this message
Andreas Preikschat (googol-deactivatedaccount) wrote :

> Maybe try changing this to "(*.*) (*.*)"?

Neither "(*.*) (*.*)" nor "All Files (*.*) (*.*)" works.

Revision history for this message
Raoul Snyman (raoul-snyman) wrote :

Meh.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'openlp/core/ui/advancedtab.py'
--- openlp/core/ui/advancedtab.py 2012-12-30 19:41:40 +0000
+++ openlp/core/ui/advancedtab.py 2013-03-19 19:26:20 +0000
@@ -662,7 +662,7 @@
662 u'background-color: %s' % self.defaultColor)662 u'background-color: %s' % self.defaultColor)
663663
664 def onDefaultBrowseButtonClicked(self):664 def onDefaultBrowseButtonClicked(self):
665 file_filters = u'%s;;%s (*.*) (*)' % (get_images_filter(),665 file_filters = u'%s;;%s (*.*)' % (get_images_filter(),
666 UiStrings().AllFiles)666 UiStrings().AllFiles)
667 filename = QtGui.QFileDialog.getOpenFileName(self,667 filename = QtGui.QFileDialog.getOpenFileName(self,
668 translate('OpenLP.AdvancedTab', 'Open File'), '',668 translate('OpenLP.AdvancedTab', 'Open File'), '',
669669
=== modified file 'openlp/core/ui/exceptionform.py'
--- openlp/core/ui/exceptionform.py 2012-12-30 19:41:24 +0000
+++ openlp/core/ui/exceptionform.py 2013-03-19 19:26:20 +0000
@@ -219,7 +219,7 @@
219 self,translate('ImagePlugin.ExceptionDialog',219 self,translate('ImagePlugin.ExceptionDialog',
220 'Select Attachment'),220 'Select Attachment'),
221 SettingsManager.get_last_dir(u'exceptions'),221 SettingsManager.get_last_dir(u'exceptions'),
222 u'%s (*.*) (*)' % UiStrings().AllFiles)222 u'%s (*.*)' % UiStrings().AllFiles)
223 log.info(u'New files(s) %s', unicode(files))223 log.info(u'New files(s) %s', unicode(files))
224 if files:224 if files:
225 self.fileAttachment = unicode(files)225 self.fileAttachment = unicode(files)
226226
=== modified file 'openlp/core/ui/themeform.py'
--- openlp/core/ui/themeform.py 2012-12-30 19:41:24 +0000
+++ openlp/core/ui/themeform.py 2013-03-19 19:26:20 +0000
@@ -536,7 +536,7 @@
536 Background Image button pushed.536 Background Image button pushed.
537 """537 """
538 images_filter = get_images_filter()538 images_filter = get_images_filter()
539 images_filter = u'%s;;%s (*.*) (*)' % (539 images_filter = u'%s;;%s (*.*)' % (
540 images_filter, UiStrings().AllFiles)540 images_filter, UiStrings().AllFiles)
541 filename = QtGui.QFileDialog.getOpenFileName(self,541 filename = QtGui.QFileDialog.getOpenFileName(self,
542 translate('OpenLP.ThemeWizard', 'Select Image'), u'',542 translate('OpenLP.ThemeWizard', 'Select Image'), u'',
543543
=== modified file 'openlp/plugins/images/lib/mediaitem.py'
--- openlp/plugins/images/lib/mediaitem.py 2013-01-05 11:31:02 +0000
+++ openlp/plugins/images/lib/mediaitem.py 2013-03-19 19:26:20 +0000
@@ -62,7 +62,7 @@
62 self.onNewPrompt = translate('ImagePlugin.MediaItem',62 self.onNewPrompt = translate('ImagePlugin.MediaItem',
63 'Select Image(s)')63 'Select Image(s)')
64 file_formats = get_images_filter()64 file_formats = get_images_filter()
65 self.onNewFileMasks = u'%s;;%s (*.*) (*)' % (file_formats,65 self.onNewFileMasks = u'%s;;%s (*.*)' % (file_formats,
66 UiStrings().AllFiles)66 UiStrings().AllFiles)
67 self.replaceAction.setText(UiStrings().ReplaceBG)67 self.replaceAction.setText(UiStrings().ReplaceBG)
68 self.replaceAction.setToolTip(UiStrings().ReplaceLiveBG)68 self.replaceAction.setToolTip(UiStrings().ReplaceLiveBG)

Subscribers

People subscribed via source and target branches