From 57df296fefd19a03acc87d49ee914ca05c11a1a5 Mon Sep 17 00:00:00 2001 From: Tim Schroeder Date: Sat, 26 Jun 2021 15:28:19 +0200 Subject: [PATCH] cutting trailing dots from folder names on all platforms --- Sync-my-L2P.pro | 4 ++-- src/utils.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Sync-my-L2P.pro b/Sync-my-L2P.pro index b652a26..4121605 100644 --- a/Sync-my-L2P.pro +++ b/Sync-my-L2P.pro @@ -1,8 +1,8 @@ QT += core gui network widgets xml CONFIG += c++11 -VERSION = "2.4.2" -VERSION_CODE = "20402" +VERSION = "2.4.3" +VERSION_CODE = "20403" TEMPLATE_FILES = include/version.h.template \ gui/info.ui.template \ diff --git a/src/utils.cpp b/src/utils.cpp index 3724ec8..26153c9 100644 --- a/src/utils.cpp +++ b/src/utils.cpp @@ -45,7 +45,7 @@ QString Utils::getElementLocalPath(Structureelement *item, QString downloadDirec auto element_text = parent->text(); if(element_text.length() > 75) element_text = element_text.left(75).trimmed(); - while (QSysInfo::productType() == "windows" && element_text.endsWith(".")) { + while (element_text.endsWith(".")) { element_text.chop(1); } path.push_front(element_text % "/");