Bug 127697

Summary: the camera gui always puts *.JPG and *.NEF in the configure - digikam dialog/File Mime Types/ Image Files.
Product: [Applications] digikam Reporter: alex cozzi <alexcozzi>
Component: Import-SettingsAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: caulier.gilles
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In: 0.9.0
Sentry Crash Report:

Description alex cozzi 2006-05-20 06:23:13 UTC
Version:           0.8.2-rc1 (using KDE 3.5.2, Kubuntu Package 4:3.5.2-0ubuntu18 dapper)
Compiler:          Target: i486-linux-gnu
OS:                Linux (i686) release 2.6.15-23-686

Whenever I use the camera gui with my nikon d70 two new mime types extensions are added to the "configure - digikam dialog" dialog, under File Mime Types/Image Files: 
*.JPG and *.NEF.
Now I like to leave the *.NEF files hidden because while going through the images with showphoto it is so much slower to watch the NEF and I usually work in JPG+RAW mode, so I get a JPG and a NEF for each picture. 
The solution would be to not change the configuration or even better to instruct digikam to consider the JPG and NEF file with the same same like a an "aggregate" file, so that whenever I delete it the JPG and the NEF are both deleted, and showPhoto uses the JPG to show the picture.
Comment 1 caulier.gilles 2006-05-30 14:54:17 UTC
SVN commit 546568 by cgilles:

digikam from trunk : check properlly the camera items extension before to add it in mime type config using a lower char conversion.
BUG: 127697

 M  +5 -6      cameraui.cpp  


--- trunk/extragear/graphics/digikam/utilities/cameragui/cameraui.cpp #546567:546568
@@ -930,14 +930,13 @@
     if (!settings)
         return;
 
-    if (settings->getImageFileFilter().contains(ext) ||
-        settings->getMovieFileFilter().contains(ext) ||
-        settings->getAudioFileFilter().contains(ext) ||
-        settings->getRawFileFilter().contains(ext))
+    if (settings->getImageFileFilter().upper().contains(ext.upper()) ||
+        settings->getMovieFileFilter().upper().contains(ext.upper()) ||
+        settings->getAudioFileFilter().upper().contains(ext.upper()) ||
+        settings->getRawFileFilter().upper().contains(ext.upper()))
         return;
 
-    settings->setImageFileFilter(settings->getImageFileFilter() +
-                                 QString(" *.") + ext);
+    settings->setImageFileFilter(settings->getImageFileFilter() + QString(" *.") + ext);
     emit signalAlbumSettingsChanged();
 }
 
Comment 2 caulier.gilles 2006-05-30 15:02:05 UTC
SVN commit 546573 by cgilles:

digikam from stable : check properlly the camera items extension before to add it in mime type config using a lower char conversion.
CCBUGS: 127697

 M  +5 -6      cameraui.cpp  


--- branches/stable/extragear/graphics/digikam/utilities/cameragui/cameraui.cpp #546572:546573
@@ -715,14 +715,13 @@
     if (!settings)
         return;
 
-    if (settings->getImageFileFilter().contains(ext) ||
-        settings->getMovieFileFilter().contains(ext) ||
-        settings->getAudioFileFilter().contains(ext) ||
-        settings->getRawFileFilter().contains(ext))
+    if (settings->getImageFileFilter().upper().contains(ext.upper()) ||
+        settings->getMovieFileFilter().upper().contains(ext.upper()) ||
+        settings->getAudioFileFilter().upper().contains(ext.upper()) ||
+        settings->getRawFileFilter().upper().contains(ext.upper()))
         return;
 
-    settings->setImageFileFilter(settings->getImageFileFilter() +
-                                 QString(" *.") + ext);
+    settings->setImageFileFilter(settings->getImageFileFilter() + QString(" *.") + ext);
     emit signalAlbumSettingsChanged();
 }