Bug 135236

Summary: Right-click menu rename function cuts to the first period (not the extention one)
Product: [Applications] digikam Reporter: Birkir A. Barkarson <birkirb>
Component: AdvancedRename-dialogAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: caulier.gilles
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In: 0.9.0

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());