aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPapoteur <papoteur@mageialinux-online.org>2016-05-05 19:27:11 +0200
committerPapoteur <papoteur@mageialinux-online.org>2016-05-05 19:27:11 +0200
commit01bc533fa75737f84805ce8553395649eef556f4 (patch)
treef3abb796550f602fa70e4e9516da80c003a4b3ff
parent64ee76f7c0d8d89f3960f51d784455dde43720a2 (diff)
downloadMageiaSync-01bc533fa75737f84805ce8553395649eef556f4.tar
MageiaSync-01bc533fa75737f84805ce8553395649eef556f4.tar.gz
MageiaSync-01bc533fa75737f84805ce8553395649eef556f4.tar.bz2
MageiaSync-01bc533fa75737f84805ce8553395649eef556f4.tar.xz
MageiaSync-01bc533fa75737f84805ce8553395649eef556f4.zip
Keep the current directory in filepicker and in prefs dialog box for destination
-rw-r--r--mageiaSync/mageiasync.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/mageiaSync/mageiasync.py b/mageiaSync/mageiasync.py
index 3582e2a..617c37e 100644
--- a/mageiaSync/mageiasync.py
+++ b/mageiaSync/mageiasync.py
@@ -379,9 +379,10 @@ class IsosViewer(QMainWindow, mageiaSyncUI.Ui_mainWindow):
def selectDestination(self):
# dialog box to select the destination (local directory)
- directory = QFileDialog.getExistingDirectory(self, self.tr('Select a directory'),'~/')
- isosSync.destination = directory
- self.pd.selectDest.setText(isosSync.destination)
+ directory = QFileDialog.getExistingDirectory(self, self.tr('Select a directory'),self.destination)
+ if directory != "":
+ isosSync.destination = directory
+ self.pd.selectDest.setText(isosSync.destination)
def selectAllIsos(self):
@@ -463,7 +464,8 @@ class IsosViewer(QMainWindow, mageiaSyncUI.Ui_mainWindow):
self.password)
if code==0:
for item in list:
- self.pd.release.addItem(item) self.pd.password.setText(self.password)
+ 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)