diff --git a/src/contents/ui/main.qml b/src/contents/ui/main.qml index 7083ea9..a0a83f9 100644 --- a/src/contents/ui/main.qml +++ b/src/contents/ui/main.qml @@ -306,7 +306,7 @@ Item { } } - log('getHighestCaptionScore highestScore: ' + highestScore + ' caption client: ' + client.caption + ' caption save: ' + windowData.saved[highestIndex].caption); + log('getHighestCaptionScore highestScore: ' + highestScore + ' caption client: ' + client.caption + ' caption save: ' + (highestIndex >= 0 ? windowData.saved[highestIndex].caption : 'none')); return returnIndex ? [highestScore, highestIndex] : highestScore; } @@ -338,7 +338,7 @@ Item { } } - log('getHighestCaptionScoreIgnoreNumbers highestScore: ' + highestScore + ' caption client: ' + client.caption + ' caption save: ' + windowData.saved[highestIndex].caption); + log('getHighestCaptionScoreIgnoreNumbers highestScore: ' + highestScore + ' caption client: ' + client.caption + ' caption save: ' + (highestIndex >= 0 ? windowData.saved[highestIndex].caption : 'none')); return returnIndex ? [highestScore, highestIndex] : highestScore; }