@@ -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 ();
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 ();
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,6 +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).remove (sourceHash);
312
313
name = QString (" %1_%2.%3" ).arg (name, sourceHash, suffix);
313
314
QString target = FS::PathCombine (m_dir.dirName (), name);
314
315
@@ -323,7 +324,7 @@ void IconList::installIcon(const QString &file, QString &name)
323
324
if (sourceHash == targetHash)
324
325
return ;
325
326
326
- QString targetFileName = QString (name);
327
+ QString targetFileName = QString (name). remove ( " _ " + targetHash). remove (targetHash) ;
327
328
targetFileName = QString (" %1_%2.%3" ).arg (targetFileName, targetHash, suffix);
328
329
targetFileName = FS::PathCombine (m_dir.dirName (), targetFileName);
329
330
if (!targetFile.rename (targetFileName))
0 commit comments