Skip to content

Commit

Permalink
Handle changed version output of Rclone 1.38.
Browse files Browse the repository at this point in the history
  • Loading branch information
JanHellwig authored and DinCahill committed Nov 22, 2018
1 parent 8f2b5a9 commit 910f3c0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main_window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 910f3c0

Please sign in to comment.