@@ -268,7 +268,7 @@ void IconList::installIcons(const QStringList &iconFiles)
268
268
continue ;
269
269
270
270
const QString sourceHash = getIconHash (sourceFile);
271
- QString sourceFileName = fileinfo.baseName ().remove (sourceHash);
271
+ QString sourceFileName = fileinfo.baseName ().remove (" _ " + sourceHash). remove ( sourceHash);
272
272
sourceFileName = QString (" %1_%2.%3" ).arg (sourceFileName, sourceHash, suffix);
273
273
QString target = FS::PathCombine (m_dir.dirName (), sourceFileName);
274
274
@@ -283,7 +283,7 @@ void IconList::installIcons(const QStringList &iconFiles)
283
283
if (sourceHash == targetHash)
284
284
continue ;
285
285
286
- QString targetFileName = fileinfo.baseName ().remove (targetHash);
286
+ QString targetFileName = fileinfo.baseName ().remove (" _ " + targetHash). remove ( targetHash);
287
287
targetFileName = QString (" %1_%2.%3" ).arg (targetFileName, targetHash, suffix);
288
288
targetFileName = FS::PathCombine (m_dir.dirName (), targetFileName);
289
289
if (!targetFile.rename (targetFileName))
@@ -309,7 +309,7 @@ void IconList::installIcon(const QString &file, QString &name)
309
309
return ;
310
310
311
311
const QString sourceHash = getIconHash (sourceFile);
312
- name = name.remove (sourceHash);
312
+ name = name.remove (" _ " + sourceHash). remove ( sourceHash);
313
313
name = QString (" %1_%2.%3" ).arg (name, sourceHash, suffix);
314
314
QString target = FS::PathCombine (m_dir.dirName (), name);
315
315
@@ -324,7 +324,7 @@ void IconList::installIcon(const QString &file, QString &name)
324
324
if (sourceHash == targetHash)
325
325
return ;
326
326
327
- QString targetFileName = QString (name).remove (targetHash);
327
+ QString targetFileName = QString (name).remove (" _ " + targetHash). remove ( targetHash);
328
328
targetFileName = QString (" %1_%2.%3" ).arg (targetFileName, targetHash, suffix);
329
329
targetFileName = FS::PathCombine (m_dir.dirName (), targetFileName);
330
330
if (!targetFile.rename (targetFileName))
0 commit comments