diff --git a/sources/editor/qetelementeditor.cpp b/sources/editor/qetelementeditor.cpp index d936573cf..23815c40f 100644 --- a/sources/editor/qetelementeditor.cpp +++ b/sources/editor/qetelementeditor.cpp @@ -40,6 +40,7 @@ #include "texteditor.h" #include "textfieldeditor.h" +#include /* Nombre maximum de primitives affichees par la "liste des parties" Au-dela, un petit message est affiche, indiquant que ce nombre a ete depasse @@ -914,6 +915,10 @@ void QETElementEditor::slot_openFile() { @see openElement */ void QETElementEditor::openRecentFile(const QString &filepath) { + if (!QFile::exists ( filepath )) + QMessageBox::warning(this, tr("Attention"), + tr("Le fichier semble ne plus exister...")+"\n"+ + tr("Fichier: ")+filepath+"\n"); if (qApp -> activeWindow() != this) return; openElement(filepath); } diff --git a/sources/qetdiagrameditor.cpp b/sources/qetdiagrameditor.cpp index 6473b14f8..6a6fc6527 100644 --- a/sources/qetdiagrameditor.cpp +++ b/sources/qetdiagrameditor.cpp @@ -30,6 +30,8 @@ #include "qetresult.h" #include "genericpanel.h" +#include + /** constructeur @param files Liste de fichiers a ouvrir @@ -635,6 +637,10 @@ bool QETDiagramEditor::newProject() { @see openAndAddDiagram */ bool QETDiagramEditor::openRecentFile(const QString &filepath) { + if (!QFile::exists ( filepath )) + QMessageBox::warning(this, tr("Attention"), + tr("Le fichier semble ne plus exister...")+"\n"+ + tr("Fichier: ")+filepath+"\n"); if (qApp -> activeWindow() != this) return(false); return(openAndAddProject(filepath)); }