GUI: Fix giving filename to project file saving function.

This commit is contained in:
Kimmo Varis 2010-07-08 16:16:25 +03:00
parent 7407b2d861
commit 4958424adc
1 changed files with 3 additions and 0 deletions

View File

@ -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;