Don't allow collapsing of the Live or Preview panes. They can still be hidden via the menu.

bzr-revno: 2285
This commit is contained in:
Samuel Mehrbrodt 2013-08-16 22:45:26 +02:00 committed by Raoul Snyman
commit 74e2c1107c

View File

@ -1196,6 +1196,9 @@ class MainWindow(QtGui.QMainWindow, Ui_MainWindow):
self.live_controller.splitter.restoreState(settings.value(u'live splitter geometry'))
self.preview_controller.splitter.restoreState(settings.value(u'preview splitter geometry'))
self.control_splitter.restoreState(settings.value(u'main window splitter geometry'))
#This needs to be called after restoreState(), because saveState() also saves the "Collapsible" property
#which was True (by default) < OpenLP 2.1.
self.control_splitter.setChildrenCollapsible(False)
settings.endGroup()
def save_settings(self):