summaryrefslogtreecommitdiff
path: root/src/leap/gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/leap/gui')
-rw-r--r--src/leap/gui/mainwindow.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/leap/gui/mainwindow.py b/src/leap/gui/mainwindow.py
index 9589bea0..af905fc0 100644
--- a/src/leap/gui/mainwindow.py
+++ b/src/leap/gui/mainwindow.py
@@ -508,7 +508,10 @@ class MainWindow(QtGui.QMainWindow):
settings = QtCore.QSettings()
self._enabled_services = settings.value(
"%s/Services" %
- (self.ui.cmbProviders.currentText(),), "").split(",")
+ (self.ui.cmbProviders.currentText(),), "")
+
+ if isinstance(self._enabled_services, (str, unicode)):
+ self._enabled_services = self._enabled_services.split(",")
if len(provider) == 0:
self._set_status(self.tr("Please select a valid provider"))