From 4958424adc2a821b2e4ee2f3c8bd04d9e76287c0 Mon Sep 17 00:00:00 2001 From: Kimmo Varis Date: Thu, 8 Jul 2010 16:16:25 +0300 Subject: [PATCH] GUI: Fix giving filename to project file saving function. --- gui/projectfile.cpp | 3 +++ 1 file changed, 3 insertions(+) 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;