From cf1a0b27ea7b00ed5e5fe2aefc1aa29b8257037b Mon Sep 17 00:00:00 2001 From: ElderP Date: Sun, 15 Jul 2012 07:59:55 -0400 Subject: [PATCH] Added code to hide data location wizard if running portable --- openlp/core/ui/advancedtab.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/openlp/core/ui/advancedtab.py b/openlp/core/ui/advancedtab.py index 25c6f7a26..c31728a11 100644 --- a/openlp/core/ui/advancedtab.py +++ b/openlp/core/ui/advancedtab.py @@ -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): """