Bug 135236 - Right-click menu rename function cuts to the first period (not the extention one)
Summary: Right-click menu rename function cuts to the first period (not the extention ...
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: AdvancedRename-dialog (show other bugs)
Version: unspecified
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-07 07:47 UTC by Birkir A. Barkarson
Modified: 2022-02-01 06:31 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 0.9.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Birkir A. Barkarson 2006-10-07 07:47:25 UTC
Version:           svn (using KDE KDE 3.5.4)
Installed from:    Fedora RPMs
OS:                Linux

A file with the name IMGX.mod.jpg when using rename through the right click menu display only the file name to the first period, IMGX not IMGX.mod as it should.
Comment 1 Marcel Wiesweg 2006-10-07 12:32:42 UTC
SVN commit 593242 by mwiesweg:

It is a matter of definition where begins the extension and what "should" be done,
but I agree for image file formats the common case is to use the last period.

BUG: 135236


 M  +1 -0      NEWS  
 M  +1 -1      digikam/albumiconview.cpp  


--- trunk/extragear/graphics/digikam/NEWS #593241:593242
@@ -299,5 +299,6 @@
 175 ==> 131382 : All thumbnails of album destroyed when using Tag Filters.
 176 ==> 134869 : High CPU usage while displaying ICC Profile.
 177 ==> 134761 : a rotated RAW image get saved straight with an inconsistent Exif orientation
+178 ==> 135236 : Right-click menu rename function cuts to the first period (not the extention one)
 
 ----------------------------------------------------------------------------------------------------
--- trunk/extragear/graphics/digikam/digikam/albumiconview.cpp #593241:593242
@@ -784,7 +784,7 @@
         return;
 
     QFileInfo fi(item->imageInfo()->name());
-    QString ext  = QString(".") + fi.extension();
+    QString ext  = QString(".") + fi.extension(false);
     QString name = fi.fileName();
     name.truncate(fi.fileName().length() - ext.length());