summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-08-24 12:39:36 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-08-24 17:03:51 +0900
commita1b7068de70e2652705fc8b6cba8584b751119ca (patch)
tree87c8bc12178620a1b0965f0c06133f8f057e9a29
parentcc8ddafac3d96f84e8ca047f83d94420e5928735 (diff)
downloadtdelibs-a1b7068de70e2652705fc8b6cba8584b751119ca.tar.gz
tdelibs-a1b7068de70e2652705fc8b6cba8584b751119ca.zip
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> (cherry picked from commit 6bf5277015cdb1cdf5f265b5ee9997bf43047ea1)
-rw-r--r--tdeio/tdefile/kicondialog.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tdeio/tdefile/kicondialog.cpp b/tdeio/tdefile/kicondialog.cpp
index 654c32396..9af41de47 100644
--- a/tdeio/tdefile/kicondialog.cpp
+++ b/tdeio/tdefile/kicondialog.cpp
@@ -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);
@@ -511,7 +511,7 @@ TQString TDEIconDialog::openDialog()
if (name.isEmpty() || (mType == 1))
return name;
TQFileInfo fi(name);
- return fi.baseName();
+ return fi.baseName(true);
}
return TQString::null;
}
@@ -536,7 +536,7 @@ void TDEIconDialog::slotOk()
if (!name.isEmpty() && (mType != 1))
{
TQFileInfo fi(name);
- name = fi.baseName();
+ name = fi.baseName(true);
}
}