Commit ecfb9581 authored by wongk's avatar wongk Committed by Oswald Buddenhagen

Don't add superfluous newlines to qmake project files.

Task-Number: QTCREATORBUG-5635

Change-Id: If12d6028b41b962e29d4aff38af3ea7ebd0eae41
Reviewed-by: default avatarOswald Buddenhagen <oswald.buddenhagen@nokia.com>
parent 002890fa
......@@ -1172,10 +1172,7 @@ void Qt4PriFileNode::changeFiles(const FileType fileType,
void Qt4PriFileNode::save(const QStringList &lines)
{
Utils::FileSaver saver(m_projectFilePath, QIODevice::Text);
foreach (const QString &str, lines) {
saver.write(str.toLocal8Bit());
saver.write("\n", 1);
}
saver.write(lines.join(QLatin1String("\n")).toLocal8Bit());
saver.finalize(Core::ICore::instance()->mainWindow());
m_project->qt4ProjectManager()->notifyChanged(m_projectFilePath);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment