Merge lp:~mikemc/ubuntu-sso-client/fix-1010102 into lp:ubuntu-sso-client

Proposed by Mike McCracken
Status: Merged
Approved by: Roberto Alsina
Approved revision: no longer in the source branch.
Merged at revision: 965
Proposed branch: lp:~mikemc/ubuntu-sso-client/fix-1010102
Merge into: lp:ubuntu-sso-client
Diff against target: 12 lines (+1/-1)
1 file modified
bin/ubuntu-sso-login (+1/-1)
To merge this branch: bzr merge lp:~mikemc/ubuntu-sso-client/fix-1010102
Reviewer Review Type Date Requested Status
Roberto Alsina (community) Approve
Review via email: mp+109193@code.launchpad.net

Commit message

- fixes bug with loading incorrect plugins caused by ignoring qt.conf ( LP #1010102 )

Description of the change

- fixes bug with loading incorrect plugins caused by ignoring qt.conf ( LP #1010102 )

Long description for short change:

The QApplication instance created in the ubuntu-sso-login is not retained, so it is garbage collected before the search for qt.conf happens.

The qt.conf search code uses the existence of a QApplication to tell if it should look for qt.conf in the application bundle, so the result is that it doesn't find a qt.conf, uses the default plugin search path, and loads plugins that link to the system Qt libraries instead of the bundled ones, which is bad.

To post a comment you must log in.
Revision history for this message
Roberto Alsina (ralsina) wrote :

+1 trivial

review: Approve
965. By Mike McCracken

- fixes bug with loading incorrect plugins caused by ignoring qt.conf ( LP #1010102 )

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'bin/ubuntu-sso-login'
2--- bin/ubuntu-sso-login 2012-05-18 14:25:49 +0000
3+++ bin/ubuntu-sso-login 2012-06-07 17:37:24 +0000
4@@ -57,7 +57,7 @@
5 # need to create the QApplication before installing the reactor
6 if os.environ.get('TESTABILITY', False):
7 sys.argv.append('-testability')
8- QtGui.QApplication(sys.argv)
9+ app = QtGui.QApplication(sys.argv)
10
11 # pylint: disable=F0401
12 import qt4reactor

Subscribers

People subscribed via source and target branches