Fix display of icon for filenames with multiple dots in the icon dialog window.

This patch has been adapted from the equivalent patch in the Suse's KDE3 repositories created by Yasuhiko Kamata.
https://build.opensuse.org/projects/KDE:KDE3/packages/kdelibs3/files/kdelibs-multiple-dot-iconfile.patch

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/298/head
Michele Calgaro 3 months ago
parent f5c38bbee3
commit 6bf5277015
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -180,7 +180,7 @@ void TDEIconCanvas::slotLoadFiles()
TQPixmap pm;
pm.convertFromImage(img);
TQFileInfo fi(*it);
TQIconViewItem *item = new TQIconViewItem(this, fi.baseName(), pm);
TQIconViewItem *item = new TQIconViewItem(this, fi.baseName(true), pm);
item->setKey(*it);
item->setDragEnabled(false);
item->setDropEnabled(false);
@ -510,7 +510,7 @@ TQString TDEIconDialog::openDialog()
if (name.isEmpty() || (mType == 1))
return name;
TQFileInfo fi(name);
return fi.baseName();
return fi.baseName(true);
}
return TQString::null;
}
@ -535,7 +535,7 @@ void TDEIconDialog::slotOk()
if (!name.isEmpty() && (mType != 1))
{
TQFileInfo fi(name);
name = fi.baseName();
name = fi.baseName(true);
}
}

Loading…
Cancel
Save