|
|
|
@ -436,7 +436,7 @@ void Archive::importTagEmblems(const TQString &extractionFolder)
|
|
|
|
|
// The icon does not exists on that computer, import it:
|
|
|
|
|
if (emblem.isNull()) {
|
|
|
|
|
// Of the emblem path was eg. "/home/seb/emblem.png", it was exported as "tag-emblems/_home_seb_emblem.png".
|
|
|
|
|
// So we need to copy that image to "~/.kde/share/apps/basket/tag-emblems/emblem.png":
|
|
|
|
|
// So we need to copy that image to "~/.trinity/share/apps/basket/tag-emblems/emblem.png":
|
|
|
|
|
int slashIndex = emblemName.findRev("/");
|
|
|
|
|
TQString emblemFileName = (slashIndex < 0 ? emblemName : emblemName.right(slashIndex - 2));
|
|
|
|
|
TQString source = extractionFolder + "tag-emblems/" + emblemName.replace('/', '_');
|
|
|
|
@ -554,7 +554,7 @@ void Archive::importBasketIcon(TQDomElement properties, const TQString &extracti
|
|
|
|
|
dir.mkdir(Global::savesFolder() + "basket-icons/");
|
|
|
|
|
FormatImporter copier; // Only used to copy files synchronously
|
|
|
|
|
// Of the icon path was eg. "/home/seb/icon.png", it was exported as "basket-icons/_home_seb_icon.png".
|
|
|
|
|
// So we need to copy that image to "~/.kde/share/apps/basket/basket-icons/icon.png":
|
|
|
|
|
// So we need to copy that image to "~/.trinity/share/apps/basket/basket-icons/icon.png":
|
|
|
|
|
int slashIndex = iconName.findRev("/");
|
|
|
|
|
TQString iconFileName = (slashIndex < 0 ? iconName : iconName.right(slashIndex - 2));
|
|
|
|
|
TQString source = extractionFolder + "basket-icons/" + iconName.replace('/', '_');
|
|
|
|
|