forked from qt-creator/qt-creator
Fix compile before current Qt dev
Amends 0120e462b2.
Change-Id: If9f443c03009bf8728497f10c8fb81f37fa1a63d
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -39,6 +39,8 @@
|
||||
#include <QTextStream>
|
||||
#include <QTimer>
|
||||
|
||||
using namespace Qt;
|
||||
|
||||
namespace Gerrit {
|
||||
namespace Internal {
|
||||
|
||||
@@ -150,10 +152,10 @@ bool AuthenticationDialog::setupCredentials()
|
||||
replaceEntry(line, "login", user);
|
||||
replaceEntry(line, "password", password);
|
||||
}
|
||||
out << line << Qt::endl;
|
||||
out << line << endl;
|
||||
}
|
||||
if (!found)
|
||||
out << "machine " << m_server->host << " login " << user << " password " << password << Qt::endl;
|
||||
out << "machine " << m_server->host << " login " << user << " password " << password << endl;
|
||||
Utils::FileSaver saver(m_netrcFileName, QFile::WriteOnly | QFile::Truncate | QFile::Text);
|
||||
saver.write(netrcContents.toUtf8());
|
||||
return saver.finalize();
|
||||
|
||||
Reference in New Issue
Block a user