Bug 127697 - the camera gui always puts *.JPG and *.NEF in the configure - digikam dialog/File Mime Types/ Image Files.
Summary: the camera gui always puts *.JPG and *.NEF in the configure - digikam dialog/...
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Import-Settings (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-20 06:23 UTC by alex cozzi
Modified: 2017-08-17 06:49 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 0.9.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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();
 }