Fix unnecessary screen setup

bzr-revno: 636
This commit is contained in:
Jon Tibble 2009-10-29 16:21:10 +00:00
commit 09a1596298

View File

@ -598,9 +598,10 @@ class MainWindow(QtGui.QMainWindow, Ui_MainWindow):
Show the Settings dialog Show the Settings dialog
""" """
self.settingsForm.exec_() self.settingsForm.exec_()
screen_number = self.getMonitorNumber() updated_display = self.getMonitorNumber()
self.RenderManager.update_display(screen_number) if updated_display != self.RenderManager.current_display:
self.mainDisplay.setup(screen_number) self.RenderManager.update_display(updated_display)
self.mainDisplay.setup(updated_display)
def closeEvent(self, event): def closeEvent(self, event):
""" """