From e519f729f199a1c10ebde12be6a704da9a0e9b8a Mon Sep 17 00:00:00 2001 From: Jon Tibble Date: Thu, 29 Oct 2009 16:01:33 +0000 Subject: [PATCH] Fix unnecessary screen setup --- openlp/core/ui/mainwindow.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/openlp/core/ui/mainwindow.py b/openlp/core/ui/mainwindow.py index 4a79f6cae..2998bd0e9 100644 --- a/openlp/core/ui/mainwindow.py +++ b/openlp/core/ui/mainwindow.py @@ -598,9 +598,10 @@ class MainWindow(QtGui.QMainWindow, Ui_MainWindow): Show the Settings dialog """ self.settingsForm.exec_() - screen_number = self.getMonitorNumber() - self.RenderManager.update_display(screen_number) - self.mainDisplay.setup(screen_number) + updated_display = self.getMonitorNumber() + if updated_display != self.RenderManager.current_display: + self.RenderManager.update_display(updated_display) + self.mainDisplay.setup(updated_display) def closeEvent(self, event): """