aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/io_graph_dialog.cpp
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2020-05-29 09:55:59 -0700
committerAnders Broman <a.broman58@gmail.com>2020-05-30 06:46:01 +0000
commit4e6f47fa622e773c3b432a23627a130387f2ffe8 (patch)
tree8c4cc832f0c0d2e76cdbe15abb385a7d010b7f6b /ui/qt/io_graph_dialog.cpp
parent76d92ba7e76ef0714090770ff1ee79861716388c (diff)
Qt: Make our exported and saved line endings consistent.
Make sure we set QIODevice::Text on our QTextStreams when saving and exporting text so that we get native line endings on Windows. Change-Id: I4602157d2d170eb9a2c79032254ea5be236c7589 Reviewed-on: https://code.wireshark.org/review/37336 Reviewed-by: Gerald Combs <gerald@wireshark.org> Petri-Dish: Gerald Combs <gerald@wireshark.org> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'ui/qt/io_graph_dialog.cpp')
-rw-r--r--ui/qt/io_graph_dialog.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/qt/io_graph_dialog.cpp b/ui/qt/io_graph_dialog.cpp
index 160376abc6..fde5f4fdc9 100644
--- a/ui/qt/io_graph_dialog.cpp
+++ b/ui/qt/io_graph_dialog.cpp
@@ -1557,7 +1557,7 @@ void IOGraphDialog::copyAsCsvClicked()
bool IOGraphDialog::saveCsv(const QString &file_name) const
{
QFile save_file(file_name);
- save_file.open(QFile::WriteOnly);
+ save_file.open(QFile::WriteOnly | QFile::Text);
QTextStream out(&save_file);
makeCsv(out);