From 4db662e5762413f39e80222d5a3f5cf45a9ad2d9 Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Mon, 15 May 2017 06:32:16 +0000 Subject: [PATCH] gui: Ensure failed items folder path contains separator (fixes #4143) Windows specific, due to how we handle folder paths. GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4149 --- gui/default/syncthing/core/syncthingController.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gui/default/syncthing/core/syncthingController.js b/gui/default/syncthing/core/syncthingController.js index 6d0d5c1b6..366758315 100755 --- a/gui/default/syncthing/core/syncthingController.js +++ b/gui/default/syncthing/core/syncthingController.js @@ -1651,6 +1651,9 @@ angular.module('syncthing.core') $scope.showFailed = function (folder) { $scope.failedCurrent = $scope.failed[folder]; $scope.failedFolderPath = $scope.folders[folder].path; + if ($scope.failedFolderPath[$scope.failedFolderPath.length - 1] !== $scope.system.pathSeparator) { + $scope.failedFolderPath += $scope.system.pathSeparator; + } $('#failed').modal().on('hidden.bs.modal', function () { $scope.failedCurrent = undefined; });