[Digikam-devel] extragear/graphics/digikam/libs/dialogs

Andi Clemens andi.clemens at gmx.net
Sun Aug 2 21:17:25 BST 2009


SVN commit 1006012 by aclemens:

change order of filetype patterns:
1. All Images
2. All RAW files
3. the rest...

For me the filedialog is broken, can you confirm this (it was broken
before this commit, before anyone asks ;-)).
If I open showFoto and click on "Open" (not "Open Folder"), I can select
any filter, I will not see my files. The only thing that seems to work
is "All RAW files", but still when hitting "Ok" the photo is not loaded
into showFoto.

Can someone confirm this?

CCMAIL:digikam-devel at kde.org

 M  +4 -4      imagedialog.cpp  


--- trunk/extragear/graphics/digikam/libs/dialogs/imagedialog.cpp #1006011:1006012
@@ -247,20 +247,20 @@
     {
         allPictures.insert(allPictures.indexOf("|"), QString(KDcrawIface::DcrawBinary::instance()->rawFiles()) + QString(" *.JPE *.TIF *.PGF"));
         patternList.removeAll(patternList[0]);
-        patternList.prepend(allPictures);
         // Added RAW file formats supported by dcraw program like a type mime.
         // Note: we cannot use here "image/x-raw" type mime from KDE because it is incomplete
         // or unavailable(see file #121242 in B.K.O).
-        patternList.append(i18n("\n%1|Camera RAW files", QString(KDcrawIface::DcrawBinary::instance()->rawFiles())));
+        patternList.prepend(i18n("\n%1|Camera RAW files", QString(KDcrawIface::DcrawBinary::instance()->rawFiles())));
+        patternList.prepend(allPictures);
     }
 #else
     allPictures.insert(allPictures.indexOf("|"), QString(KDcrawIface::KDcraw::rawFiles()) + QString(" *.JPE *.TIF *.PGF"));
     patternList.removeAll(patternList[0]);
-    patternList.prepend(allPictures);
     // Added RAW file formats supported by dcraw program like a type mime.
     // Note: we cannot use here "image/x-raw" type mime from KDE because it is incomplete
     // or unavailable(see file #121242 in B.K.O).
-    patternList.append(i18n("%1|Camera RAW files", QString(KDcrawIface::KDcraw::rawFiles())));
+    patternList.prepend(i18n("%1|Camera RAW files", QString(KDcrawIface::KDcraw::rawFiles())));
+    patternList.prepend(allPictures);
 #endif
     patternList.append(i18n("*.pgf|Progressive Graphics file"));
 



More information about the Digikam-devel mailing list