aboutsummaryrefslogtreecommitdiffstats
path: root/mageiaSync/mageiasync.py
diff options
context:
space:
mode:
Diffstat (limited to 'mageiaSync/mageiasync.py')
-rw-r--r--mageiaSync/mageiasync.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/mageiaSync/mageiasync.py b/mageiaSync/mageiasync.py
index e50793f..9dc4c7b 100644
--- a/mageiaSync/mageiasync.py
+++ b/mageiaSync/mageiasync.py
@@ -459,8 +459,12 @@ class IsosViewer(QMainWindow, mageiaSyncUI.Ui_mainWindow):
def prefs(self):
# From the menu entry
self.pd=prefsDialog()
- self.pd.release.addItem(self.release)
- self.pd.password.setText(self.password)
+ if self.password !="":
+ code,list=mageiaSyncExt.findRelease('rsync://'+self.user+'@bcd.mageia.org/isos/',
+ self.password)
+ if code==0:
+ for item in list:
+ self.pd.release.addItem(item) self.pd.password.setText(self.password)
self.pd.user.setText(self.user)
self.pd.location.setText(self.location)
self.pd.selectDest.setText(self.destination)