SQL export uses wrong line terminators for Windows

According to Qt documentation:

When writing, the end-of-line terminators are translated to the local
encoding, for example '\r\n' for Win32.

Reported in issue #1502
This commit is contained in:
mgrojo
2018-09-06 23:14:55 +02:00
parent 2081af207b
commit ca00e51271

View File

@@ -655,7 +655,7 @@ bool DBBrowserDB::dump(const QString& filePath,
// Open file
QFile file(filePath);
if(file.open(QIODevice::WriteOnly))
if(file.open(QIODevice::WriteOnly|QIODevice::Text))
{
QApplication::setOverrideCursor(Qt::WaitCursor);