diff options
author | Papoteur <papoteur@mageialinux-online.org> | 2015-02-28 09:53:57 +0100 |
---|---|---|
committer | Papoteur <papoteur@mageialinux-online.org> | 2015-02-28 09:53:57 +0100 |
commit | c9286400167ccc4dbafda3ea01e42c538c3012f5 (patch) | |
tree | 029dac762c711c2c6908873be49cb9120f13df47 /mageiaSync/mageiasync.py | |
parent | 02321c5aa2f0134667fd1690108022870da0968a (diff) | |
download | MageiaSync-c9286400167ccc4dbafda3ea01e42c538c3012f5.tar MageiaSync-c9286400167ccc4dbafda3ea01e42c538c3012f5.tar.gz MageiaSync-c9286400167ccc4dbafda3ea01e42c538c3012f5.tar.bz2 MageiaSync-c9286400167ccc4dbafda3ea01e42c538c3012f5.tar.xz MageiaSync-c9286400167ccc4dbafda3ea01e42c538c3012f5.zip |
Correction of a bug on translation function in renaming.
Diffstat (limited to 'mageiaSync/mageiasync.py')
-rw-r--r-- | mageiaSync/mageiasync.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/mageiaSync/mageiasync.py b/mageiaSync/mageiasync.py index f201625..23ba885 100644 --- a/mageiaSync/mageiasync.py +++ b/mageiaSync/mageiasync.py @@ -372,7 +372,11 @@ class IsosViewer(QMainWindow, mageiaSyncUI.Ui_mainWindow): self.rd.chooseDir.setText(self.destination) answer=self.rd.exec_() if answer: - returnMsg=mageiaSyncExt.rename(self.rd.chooseDir.text(),self.rd.oldRelease.text(),str(self.rd.newRelease.text())) + returncode=mageiaSyncExt.rename(self.rd.chooseDir.text(),self.rd.oldRelease.text(),str(self.rd.newRelease.text())) + if returncode==1: + returnMsg="Error in renaming" + else: + returnMsg=self.tr("Success in renaming") self.lvMessage(returnMsg) self.rd.close() |