GUI: Fix giving filename to project file saving function.
This commit is contained in:
parent
7407b2d861
commit
4958424adc
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue