Merge lp:~raoul-snyman/openlp/bugfixes into lp:openlp

Proposed by Raoul Snyman
Status: Merged
Merged at revision: not available
Proposed branch: lp:~raoul-snyman/openlp/bugfixes
Merge into: lp:openlp
Diff against target: None lines
To merge this branch: bzr merge lp:~raoul-snyman/openlp/bugfixes
Reviewer Review Type Date Requested Status
Jon Tibble (community) Approve
Review via email: mp+12139@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Raoul Snyman (raoul-snyman) wrote :

Just changed the resource import slightly. Now it only imports the init function and runs that at a specific time. For Michael Gorven.

Revision history for this message
Jon Tibble (meths) :
review: Approve
lp:~raoul-snyman/openlp/bugfixes updated
560. By Raoul Snyman

Merged in lp:~raoul-snyman/openlp/bugfixes

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'openlp.pyw'
2--- openlp.pyw 2009-09-12 21:31:35 +0000
3+++ openlp.pyw 2009-09-20 15:45:33 +0000
4@@ -30,7 +30,7 @@
5 from PyQt4 import QtCore, QtGui
6
7 from openlp.core.lib import Receiver, str_to_bool
8-from openlp.core.resources import *
9+from openlp.core.resources import qInitResources
10 from openlp.core.ui import MainWindow, SplashScreen
11 from openlp.core.utils import ConfigHelper
12
13@@ -105,6 +105,8 @@
14 log.setLevel(logging.DEBUG)
15 else:
16 log.setLevel(logging.INFO)
17+ # Initialise the resources
18+ qInitResources()
19 # Now create and actually run the application.
20 app = OpenLP(sys.argv)
21 sys.exit(app.run())
22@@ -113,6 +115,4 @@
23 """
24 Instantiate and run the application.
25 """
26- #import cProfile
27- #cProfile.run("main()", "profile.out")
28 main()
29
30=== modified file 'openlp/core/ui/settingsform.py'
31--- openlp/core/ui/settingsform.py 2009-09-08 19:58:05 +0000
32+++ openlp/core/ui/settingsform.py 2009-09-20 15:45:33 +0000
33@@ -27,7 +27,6 @@
34 from PyQt4 import QtCore, QtGui
35
36 from openlp.core.lib import SettingsTab
37-from openlp.core.resources import *
38 from openlp.core.ui import GeneralTab, ThemesTab, AlertsTab
39 from settingsdialog import Ui_SettingsDialog
40