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
1=== modified file 'openlp/core/ui/advancedtab.py'
2--- openlp/core/ui/advancedtab.py 2012-12-30 19:41:40 +0000
3+++ openlp/core/ui/advancedtab.py 2013-03-19 19:26:20 +0000
4@@ -662,7 +662,7 @@
5 u'background-color: %s' % self.defaultColor)
6
7 def onDefaultBrowseButtonClicked(self):
8- file_filters = u'%s;;%s (*.*) (*)' % (get_images_filter(),
9+ file_filters = u'%s;;%s (*.*)' % (get_images_filter(),
10 UiStrings().AllFiles)
11 filename = QtGui.QFileDialog.getOpenFileName(self,
12 translate('OpenLP.AdvancedTab', 'Open File'), '',
13
14=== modified file 'openlp/core/ui/exceptionform.py'
15--- openlp/core/ui/exceptionform.py 2012-12-30 19:41:24 +0000
16+++ openlp/core/ui/exceptionform.py 2013-03-19 19:26:20 +0000
17@@ -219,7 +219,7 @@
18 self,translate('ImagePlugin.ExceptionDialog',
19 'Select Attachment'),
20 SettingsManager.get_last_dir(u'exceptions'),
21- u'%s (*.*) (*)' % UiStrings().AllFiles)
22+ u'%s (*.*)' % UiStrings().AllFiles)
23 log.info(u'New files(s) %s', unicode(files))
24 if files:
25 self.fileAttachment = unicode(files)
26
27=== modified file 'openlp/core/ui/themeform.py'
28--- openlp/core/ui/themeform.py 2012-12-30 19:41:24 +0000
29+++ openlp/core/ui/themeform.py 2013-03-19 19:26:20 +0000
30@@ -536,7 +536,7 @@
31 Background Image button pushed.
32 """
33 images_filter = get_images_filter()
34- images_filter = u'%s;;%s (*.*) (*)' % (
35+ images_filter = u'%s;;%s (*.*)' % (
36 images_filter, UiStrings().AllFiles)
37 filename = QtGui.QFileDialog.getOpenFileName(self,
38 translate('OpenLP.ThemeWizard', 'Select Image'), u'',
39
40=== modified file 'openlp/plugins/images/lib/mediaitem.py'
41--- openlp/plugins/images/lib/mediaitem.py 2013-01-05 11:31:02 +0000
42+++ openlp/plugins/images/lib/mediaitem.py 2013-03-19 19:26:20 +0000
43@@ -62,7 +62,7 @@
44 self.onNewPrompt = translate('ImagePlugin.MediaItem',
45 'Select Image(s)')
46 file_formats = get_images_filter()
47- self.onNewFileMasks = u'%s;;%s (*.*) (*)' % (file_formats,
48+ self.onNewFileMasks = u'%s;;%s (*.*)' % (file_formats,
49 UiStrings().AllFiles)
50 self.replaceAction.setText(UiStrings().ReplaceBG)
51 self.replaceAction.setToolTip(UiStrings().ReplaceLiveBG)

Subscribers

People subscribed via source and target branches