In clean_file_name_make_pretty() function: Do *not* simplify() file name, unless we actually perform at least one replacement.

This commit is contained in:
LoRd_MuldeR 2017-08-15 22:49:08 +02:00
parent 2e958ece6a
commit c4da219a1e

View File

@ -598,11 +598,11 @@ static void clean_file_name_make_pretty(QString &str)
str.replace(iter->first, iter->second); str.replace(iter->first, iter->second);
if (str.compare(prev)) if (str.compare(prev))
{ {
str = str.simplified();
keepOnGoing = !str.isEmpty(); keepOnGoing = !str.isEmpty();
break; break;
} }
} }
str = str.simplified();
} }
} }