Helpviewer/Sync/SyncHostTypePage.py

changeset 1695
7b115f986d48
parent 1626
a77c8ea8582c
child 2302
f29e9405c851
--- a/Helpviewer/Sync/SyncHostTypePage.py	Sat Mar 10 15:17:52 2012 +0100
+++ b/Helpviewer/Sync/SyncHostTypePage.py	Sat Mar 10 17:42:07 2012 +0100
@@ -29,8 +29,10 @@
         super().__init__(parent)
         self.setupUi(self)
         
-        if Preferences.getHelp("SyncType") == 0:
+        if Preferences.getHelp("SyncType") == SyncGlobals.SyncTypeFtp:
             self.ftpRadioButton.setChecked(True)
+        elif Preferences.getHelp("SyncType") == SyncGlobals.SyncTypeDirectory:
+            self.directoryRadioButton.setChecked(True)
         else:
             self.noneRadioButton.setChecked(True)
     
@@ -42,8 +44,11 @@
         """
         # save the settings
         if self.ftpRadioButton.isChecked():
-            Preferences.setHelp("SyncType", 0)
+            Preferences.setHelp("SyncType", SyncGlobals.SyncTypeFtp)
             return SyncGlobals.PageFTPSettings
+        elif self.directoryRadioButton.isChecked():
+            Preferences.setHelp("SyncType", SyncGlobals.SyncTypeDirectory)
+            return SyncGlobals.PageDirectorySettings
         else:
-            Preferences.setHelp("SyncType", -1)
+            Preferences.setHelp("SyncType", SyncGlobals.SyncTypeNone)
             return SyncGlobals.PageCheck

eric ide

mercurial