aboutsummaryrefslogtreecommitdiffstats
path: root/mageiaSync/mageiasync.py
diff options
context:
space:
mode:
authorPapoteur <papoteur@mageialinux-online.org>2015-02-12 18:47:32 +0100
committerPapoteur <papoteur@mageialinux-online.org>2015-02-12 18:47:32 +0100
commit71a53d8a20a6c84ede05eecfa8570303beb6d3b1 (patch)
treef12557e7fdfda36400226bb3c5e0788e15303367 /mageiaSync/mageiasync.py
parent9ef18d0d588cd976dc9a06f519568d012925eb51 (diff)
downloadMageiaSync-71a53d8a20a6c84ede05eecfa8570303beb6d3b1.tar
MageiaSync-71a53d8a20a6c84ede05eecfa8570303beb6d3b1.tar.gz
MageiaSync-71a53d8a20a6c84ede05eecfa8570303beb6d3b1.tar.bz2
MageiaSync-71a53d8a20a6c84ede05eecfa8570303beb6d3b1.tar.xz
MageiaSync-71a53d8a20a6c84ede05eecfa8570303beb6d3b1.zip
Correction in writing the destination directory. A "&" was wrongly added in Mageia 5.
Diffstat (limited to 'mageiaSync/mageiasync.py')
-rw-r--r--mageiaSync/mageiasync.py13
1 files changed, 9 insertions, 4 deletions
diff --git a/mageiaSync/mageiasync.py b/mageiaSync/mageiasync.py
index cc61183..a9bca68 100644
--- a/mageiaSync/mageiasync.py
+++ b/mageiaSync/mageiasync.py
@@ -281,7 +281,7 @@ class IsosViewer(QMainWindow, mageiaSyncUI.Ui_mainWindow):
self.location=self.pd.location.text()
params=QtCore.QSettings("Mageia","mageiaSync")
self.release= self.pd.release.currentText()
- self.destination=self.pd.selectDest.text()
+ #elf.destination=self.pd.selectDest.text()
self.bwl=self.pd.bwl.value()
params.setValue("release", self.release)
params.setValue("user",self.user)
@@ -325,8 +325,8 @@ class IsosViewer(QMainWindow, mageiaSyncUI.Ui_mainWindow):
self.selectAllState=not self.selectAllState
def connectActions(self):
- self.actionQuit.triggered.connect(app.quit)
- self.quit.clicked.connect(app.quit)
+ self.actionQuit.triggered.connect(self.quitApp)
+ self.quit.clicked.connect(self.quitApp)
self.actionRename.triggered.connect(self.rename)
self.actionUpdate.triggered.connect(self.updateList)
self.actionCheck.triggered.connect(self.manualChecks)
@@ -392,7 +392,7 @@ class IsosViewer(QMainWindow, mageiaSyncUI.Ui_mainWindow):
params.setValue("user",self.pd.user.text())
params.setValue("password",self.pd.password.text())
params.setValue("location",self.pd.location.text())
- params.setValue("destination",self.pd.selectDest.text())
+ params.setValue("destination",self.destination)
params.setValue("bwl",str(self.pd.bwl.value()))
self.prefsInit()
self.pd.close()
@@ -458,6 +458,11 @@ class IsosViewer(QMainWindow, mageiaSyncUI.Ui_mainWindow):
self.listIsos.setEnabled(True)
self.selectAll.setEnabled(True)
+ def quitApp(self):
+ self.stopSync()
+ app.closeAllWindows()
+ self.fillList.quit()
+ app.quit()
def main(self):
self.show()