Added code to hide data location wizard if running portable

This commit is contained in:
ElderP 2012-07-15 07:59:55 -04:00
parent f0047bece0
commit cf1a0b27ea
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):
"""