From f0ea9ad8a9272d73ea2f84204563698019a6cc71 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20Ribes?= <> Date: Tue, 22 Feb 2011 15:57:24 +0000 Subject: [PATCH] On fait remonter le retour de la fonction save --- InterfaceQT4/qtEficas.py | 2 +- InterfaceQT4/viewManager.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/InterfaceQT4/qtEficas.py b/InterfaceQT4/qtEficas.py index 11402174..9a7d203c 100644 --- a/InterfaceQT4/qtEficas.py +++ b/InterfaceQT4/qtEficas.py @@ -340,7 +340,7 @@ class Appli(Ui_Eficas,QMainWindow): self.viewmanager.handleOpen() def fileSave(self): - self.viewmanager.saveCurrentEditor() + return self.viewmanager.saveCurrentEditor() def fileSaveAs(self): self.viewmanager.saveAsCurrentEditor() diff --git a/InterfaceQT4/viewManager.py b/InterfaceQT4/viewManager.py index b12bd9c1..f98bbaff 100644 --- a/InterfaceQT4/viewManager.py +++ b/InterfaceQT4/viewManager.py @@ -165,6 +165,7 @@ class MyTabview: if ok : fileName=os.path.basename(unicode(newName)) self.myQtab.setTabText(index,fileName) + return ok def saveAsCurrentEditor(self): index=self.myQtab.currentIndex() -- 2.39.2