[Digikam-devel] hu?
Tom Albers
tomalbers at kde.nl
Sun Jan 1 23:35:00 GMT 2006
Gilles,
Can you look at this patch? I can not understand why you are splitting a
qstringlist ;-)
Have not tested it though.
Tom
---------------------
Index: showfoto/showfoto.cpp
===================================================================
--- showfoto/showfoto.cpp (revision 493241)
+++ showfoto/showfoto.cpp (working copy)
@@ -725,8 +725,7 @@
// Else, check if format from file name extension is include on
file mime type list.
QString imgExtPattern;
- QStringList imgExtList = QStringList::split(" ", mimetypes);
- for (QStringList::ConstIterator it = imgExtList.begin() ; it !=
imgExtList.end() ; it++)
+ for (QStringList::ConstIterator it = mimetypes.begin() ; it !=
mimetypes.end() ; it++)
{
imgExtPattern.append (KImageIO::typeForMime(*it));
imgExtPattern.append (" ");
Index: utilities/imageeditor/imagewindow.cpp
===================================================================
--- utilities/imageeditor/imagewindow.cpp (revision 493241)
+++ utilities/imageeditor/imagewindow.cpp (working copy)
@@ -1067,8 +1067,7 @@
// Else, check if format from file name extension is include on
file mime type list.
QString imgExtPattern;
- QStringList imgExtList = QStringList::split(" ", mimetypes);
- for (QStringList::ConstIterator it = imgExtList.begin() ; it !=
imgExtList.end() ; it++)
+ for (QStringList::ConstIterator it = mimetypes.begin() ; it !=
mimetypes.end() ; it++)
{
imgExtPattern.append (KImageIO::typeForMime(*it));
imgExtPattern.append (" ");
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1930 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/digikam-devel/attachments/20060102/9e564a33/attachment.bin>
More information about the Digikam-devel
mailing list