OSDN Git Service

In clean_file_name_make_pretty() function: Do *not* simplify() file name, unless...
authorLoRd_MuldeR <mulder2@gmx.de>
Tue, 15 Aug 2017 20:49:08 +0000 (22:49 +0200)
committerLoRd_MuldeR <mulder2@gmx.de>
Tue, 15 Aug 2017 20:49:08 +0000 (22:49 +0200)
src/Global.cpp

index 248309a..b10ed68 100644 (file)
@@ -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();
        }
 }