Skip to content

Commit

Permalink
SQL export uses wrong line terminators for Windows
Browse files Browse the repository at this point in the history
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
  • Loading branch information
mgrojo committed Sep 6, 2018
1 parent 2081af2 commit ca00e51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sqlitedb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit ca00e51

Please sign in to comment.