From 4e6f47fa622e773c3b432a23627a130387f2ffe8 Mon Sep 17 00:00:00 2001 From: Gerald Combs Date: Fri, 29 May 2020 09:55:59 -0700 Subject: 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 Petri-Dish: Gerald Combs Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman --- ui/qt/io_graph_dialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui/qt/io_graph_dialog.cpp') 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); -- cgit v1.2.3