From eedf15c3fbad25fad5eaea372e6a586f6c96bbbf Mon Sep 17 00:00:00 2001 From: Pascale Noyret Date: Tue, 20 Feb 2007 16:38:33 +0000 Subject: [PATCH] Pn message d erreur si le fichier ne se compile pas --- Interface/editor.py | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/Interface/editor.py b/Interface/editor.py index 2e9c7e69..de37c9fa 100644 --- a/Interface/editor.py +++ b/Interface/editor.py @@ -16,6 +16,7 @@ import Objecttreeitem import prefs import configuration import panels +import afficheErreur VERSION_EFICAS = "EFICAS v1.11" VERSION_CODE = session.d_env.cata @@ -209,18 +210,22 @@ class JDCEditor(QSplitter): ) jdc.analyse() txt= jdc.cr.get_mess_exception() - if txt:raise ValueError(txt) - self.jdc=jdc - self.jdc.appli = self + if txt: + # PN attention reporter ici les tests pour batch / ou non + # if self.appli.test == 0 : + qApp.restoreOverrideCursor() + monDialog=afficheErreur.afficheErreur(parent=self.parent,fl=Qt.WType_Dialog) + monDialog.texteErreur.setText(QString(txt)) + monDialog.show() + self.closeIt() + else : + self.jdc.appli = self # ------------------------------------------------------------------------------------ # charge le JDC fin # ------------------------------------------------------------------------------------ -## self.setModified(0) - self.modified = False - - qApp.restoreOverrideCursor() - - self.lastModified = self.fileInfo.lastModified() + self.modified = False + self.lastModified = self.fileInfo.lastModified() + qApp.restoreOverrideCursor() def handleRenamed(self, fn): -- 2.39.2