forked from openlp/openlp
Fix display monitor test logic
This commit is contained in:
parent
0f1ac7cfb2
commit
15f2976cd8
@ -500,8 +500,14 @@ class MainWindow(QtGui.QMainWindow, Ui_MainWindow):
|
||||
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 i in self.screenList:
|
||||
if i[u'number'] == screen_number:
|
||||
monitor_exists = True
|
||||
if not monitor_exists:
|
||||
screen_number = 0
|
||||
|
||||
return screen_number
|
||||
|
||||
def show(self):
|
||||
|
Loading…
Reference in New Issue
Block a user