diff --git a/gui/projectfile.cpp b/gui/projectfile.cpp index 2beb7f1bf..619bd8226 100644 --- a/gui/projectfile.cpp +++ b/gui/projectfile.cpp @@ -201,6 +201,9 @@ void ProjectFile::SetDefines(QStringList defines) bool ProjectFile::Write(const QString &filename) { + if (!filename.isEmpty()) + mFilename = filename; + QFile file(mFilename); if (!file.open(QIODevice::WriteOnly | QIODevice::Text)) return false;