diff options
author | Papoteur <papoteur@mageialinux-online.org> | 2016-05-05 15:40:59 +0200 |
---|---|---|
committer | Papoteur <papoteur@mageialinux-online.org> | 2016-05-05 15:40:59 +0200 |
commit | f15791e56edf9d68f8c4daf26aafef91a618393e (patch) | |
tree | 6ee095f44c89e0bc9db0789ea4bcf50cd06b5f25 /mageiaSync | |
parent | 1cecfb0ea6425b923b15920501b68b3a4ee3b02e (diff) | |
download | MageiaSync-f15791e56edf9d68f8c4daf26aafef91a618393e.tar MageiaSync-f15791e56edf9d68f8c4daf26aafef91a618393e.tar.gz MageiaSync-f15791e56edf9d68f8c4daf26aafef91a618393e.tar.bz2 MageiaSync-f15791e56edf9d68f8c4daf26aafef91a618393e.tar.xz MageiaSync-f15791e56edf9d68f8c4daf26aafef91a618393e.zip |
Get remote directories also when updating preferences (was only at first setting)
Diffstat (limited to 'mageiaSync')
-rw-r--r-- | mageiaSync/mageiasync.py | 8 |
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) |