forked from openlp/openlp
Fix index naming in screen fix
This commit is contained in:
parent
15f2976cd8
commit
94dbcc1a28
@ -502,8 +502,8 @@ class MainWindow(QtGui.QMainWindow, Ui_MainWindow):
|
|||||||
screen_number = int(self.generalConfig.get_config(u'Monitor', 0))
|
screen_number = int(self.generalConfig.get_config(u'Monitor', 0))
|
||||||
|
|
||||||
monitor_exists = False
|
monitor_exists = False
|
||||||
for i in self.screenList:
|
for screen in self.screenList:
|
||||||
if i[u'number'] == screen_number:
|
if screen[u'number'] == screen_number:
|
||||||
monitor_exists = True
|
monitor_exists = True
|
||||||
if not monitor_exists:
|
if not monitor_exists:
|
||||||
screen_number = 0
|
screen_number = 0
|
||||||
|
Loading…
Reference in New Issue
Block a user