Hide the Data Location group box on the Advanced tab if OpenLP is running portable.

bzr-revno: 2034
This commit is contained in:
Stevan Pettit 2012-07-20 09:35:16 +02:00 committed by Raoul Snyman
commit c5e23da78b
1 changed files with 4 additions and 0 deletions

View File

@ -545,6 +545,10 @@ class AdvancedTab(SettingsTab):
self.currentDataPath))
self.defaultColorButton.setStyleSheet(
u'background-color: %s' % self.defaultColor)
# Don't allow data directory move if running portable.
if Settings().value(u'advanced/is portable',
QtCore.QVariant(False)).toBool():
self.dataDirectoryGroupBox.hide()
def save(self):
"""