From c4da219a1ec335e3e5f4d6a38eefaf92c763c2ac Mon Sep 17 00:00:00 2001 From: LoRd_MuldeR Date: Tue, 15 Aug 2017 22:49:08 +0200 Subject: [PATCH] In clean_file_name_make_pretty() function: Do *not* simplify() file name, unless we actually perform at least one replacement. --- src/Global.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Global.cpp b/src/Global.cpp index 248309a..b10ed68 100644 --- a/src/Global.cpp +++ b/src/Global.cpp @@ -598,11 +598,11 @@ static void clean_file_name_make_pretty(QString &str) str.replace(iter->first, iter->second); if (str.compare(prev)) { + str = str.simplified(); keepOnGoing = !str.isEmpty(); break; } } - str = str.simplified(); } } -- 2.11.0