mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3421 Text File Export : Open file as text file when required
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
void writeTextToFile(const QString& filePath, const QString& text)
|
||||
{
|
||||
QFile exportFile(filePath);
|
||||
if (exportFile.open(QIODevice::WriteOnly))
|
||||
if (exportFile.open(QIODevice::WriteOnly | QIODevice::Text))
|
||||
{
|
||||
QTextStream stream(&exportFile);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user