Jon Tibble has proposed merging lp:~meths/openlp/testing into lp:openlp.

Requested reviews:
    openlp.org Core (openlp-core)
-- 
https://code.launchpad.net/~meths/openlp/testing/+merge/11004
Your team openlp.org Core is subscribed to branch lp:openlp.
=== modified file 'openlp/core/ui/mainwindow.py'
--- openlp/core/ui/mainwindow.py	2009-08-29 07:17:56 +0000
+++ openlp/core/ui/mainwindow.py	2009-09-01 19:39:49 +0000
@@ -500,8 +500,14 @@
         monitor number does not exist.
         """
         screen_number = int(self.generalConfig.get_config(u'Monitor', 0))
-        if screen_number not in self.screenList:
+
+        monitor_exists = False
+        for screen in self.screenList:
+            if screen[u'number'] == screen_number:
+                monitor_exists = True
+        if not monitor_exists:
             screen_number = 0
+
         return screen_number
 
     def show(self):

_______________________________________________
Mailing list: https://launchpad.net/~openlp-core
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openlp-core
More help   : https://help.launchpad.net/ListHelp

Reply via email to