From 910f3c057b8fd6a1c294c313f74a74481b628e36 Mon Sep 17 00:00:00 2001 From: Jan Hellwig Date: Tue, 3 Oct 2017 14:20:31 +0200 Subject: [PATCH] Handle changed version output of Rclone 1.38. --- src/main_window.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main_window.cpp b/src/main_window.cpp index 48864bd2..e41faf5c 100644 --- a/src/main_window.cpp +++ b/src/main_window.cpp @@ -199,6 +199,11 @@ void MainWindow::rcloneGetVersion() if (code == 0) { QString version = p->readAllStandardOutput().trimmed(); + int lineBreak = version.indexOf('\n'); + if (lineBreak != -1) + { + version.remove(lineBreak, version.length() - lineBreak); + } mStatusMessage->setText(version + " in " + QDir::toNativeSeparators(GetRclone())); rcloneListRemotes(); }