diff --git a/src/qtgui/save.cpp b/src/qtgui/save.cpp index a44ca363..829de03e 100644 --- a/src/qtgui/save.cpp +++ b/src/qtgui/save.cpp @@ -331,7 +331,9 @@ void saveScene(QWidget *parent, SceneContext *ctx, const QString &targetFile) { QString textContent = doc.toString(); QTextStream input(&textContent); QTextStream output(&file); - QRegExp nameRegExp("name=\"[^\"]*\""), + QRegExp + filenameRegExp("filename=\"[^\"]*\""), + nameRegExp("name=\"[^\"]*\""), tagRegExp("^\\s*<([a-zA-Z]+) "), leadingSpaces("^ *"), closeTag("^\\s*