aboutsummaryrefslogtreecommitdiff
path: root/launcher
diff options
context:
space:
mode:
Diffstat (limited to 'launcher')
-rw-r--r--launcher/LoggedProcess.cpp11
1 files changed, 3 insertions, 8 deletions
diff --git a/launcher/LoggedProcess.cpp b/launcher/LoggedProcess.cpp
index 6978777e..fadd64e6 100644
--- a/launcher/LoggedProcess.cpp
+++ b/launcher/LoggedProcess.cpp
@@ -65,14 +65,9 @@ QStringList LoggedProcess::reprocess(const QByteArray& data, QTextDecoder& decod
m_leftover_line = "";
}
-#if QT_VERSION < QT_VERSION_CHECK(5, 14, 0)
- auto lines = str.remove(QChar::CarriageReturn).split(QChar::LineFeed, QString::SkipEmptyParts);
-#else
- auto lines = str.remove(QChar::CarriageReturn).split(QChar::LineFeed, Qt::SkipEmptyParts);
-#endif
-
- if (!str.endsWith(QChar::LineFeed))
- m_leftover_line = lines.takeLast();
+ auto lines = str.remove(QChar::CarriageReturn).split(QChar::LineFeed);
+
+ m_leftover_line = lines.takeLast();
return lines;
}