Merge lp:~trb143/openlp/bug-902115 into lp:openlp

Proposed by Tim Bentley
Status: Superseded
Proposed branch: lp:~trb143/openlp/bug-902115
Merge into: lp:openlp
Diff against target: 53 lines (+3/-5)
3 files modified
openlp/core/lib/__init__.py (+3/-3)
openlp/plugins/presentations/lib/impresscontroller.py (+0/-1)
openlp/plugins/songs/lib/oooimport.py (+0/-1)
To merge this branch: bzr merge lp:~trb143/openlp/bug-902115
Reviewer Review Type Date Requested Status
Raoul Snyman Needs Fixing
Jonathan Corwin (community) Needs Information
Andreas Preikschat (community) Approve
Review via email: mp+94652@code.launchpad.net

This proposal has been superseded by a proposal from 2012-02-25.

Description of the change

Fix thread bug which on linux causing OpenLP and Impress to fail.
Fix Spelling
Remove Qlocale code for now as not supported in PyQt (nay version).

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

Should work (when I removed process.waitForStarted() it worked)....

review: Approve
Revision history for this message
Andreas Preikschat (googol-deactivatedaccount) wrote :
Revision history for this message
Jonathan Corwin (j-corwin) wrote :

Does it work OK on slower machines where it might take a while for Impress to start, and so code which tries to access the Impress API might do so before it has finished loading?

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

What would be better is to check if the user is running PyQt4 version 4.9 or higher.

review: Needs Fixing
lp:~trb143/openlp/bug-902115 updated
1785. By Tim Bentley

Fix locale test

1786. By Tim Bentley

Correct brackets

Unmerged revisions

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'openlp/core/lib/__init__.py'
2--- openlp/core/lib/__init__.py 2012-02-19 20:53:41 +0000
3+++ openlp/core/lib/__init__.py 2012-02-25 17:47:17 +0000
4@@ -56,7 +56,7 @@
5
6 class ServiceItemAction(object):
7 """
8- Provides an enumeration for the required action moving between service
9+ Provides an enumeration for the required action moving between service
10 items by left/right arrow keys
11 """
12 Previous = 1
13@@ -321,14 +321,14 @@
14 def create_separated_list(stringlist):
15 """
16 Returns a string that represents a join of a list of strings with a
17- localized separator. This function corresponts to
18+ localized separator. This function corresponds to
19 QLocale::createSeparatedList which was introduced in Qt 4.8 and implements
20 the algorithm from http://www.unicode.org/reports/tr35/#ListPatterns
21
22 ``stringlist``
23 List of unicode strings
24 """
25- if Qt.qVersion() >= u'4.8':
26+ if Qt.PYQT_VERSION_STR >= u'4.9':
27 return unicode(QtCore.QLocale.createSeparatedList(stringlist))
28 if not stringlist:
29 return u''
30
31=== modified file 'openlp/plugins/presentations/lib/impresscontroller.py'
32--- openlp/plugins/presentations/lib/impresscontroller.py 2011-12-27 10:33:55 +0000
33+++ openlp/plugins/presentations/lib/impresscontroller.py 2012-02-25 17:47:17 +0000
34@@ -105,7 +105,6 @@
35 cmd = get_uno_command()
36 self.process = QtCore.QProcess()
37 self.process.startDetached(cmd)
38- self.process.waitForStarted()
39
40 def get_uno_desktop(self):
41 """
42
43=== modified file 'openlp/plugins/songs/lib/oooimport.py'
44--- openlp/plugins/songs/lib/oooimport.py 2011-12-27 10:33:55 +0000
45+++ openlp/plugins/songs/lib/oooimport.py 2012-02-25 17:47:17 +0000
46@@ -142,7 +142,6 @@
47 cmd = get_uno_command()
48 process = QtCore.QProcess()
49 process.startDetached(cmd)
50- process.waitForStarted()
51 self.processStarted = True
52 except:
53 log.exception("startOooProcess failed")