[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdelibs/kdecore/services
From:       Stephen Leaf <smileaf () smileaf ! org>
Date:       2007-05-02 17:22:26
Message-ID: 1178126546.129752.22025.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 660421 by smileaf:

Revert changes as the issue should never occur. and if it does it'd be better fixed else where.

 M  +1 -3      kmimetype.cpp  


--- trunk/KDE/kdelibs/kdecore/services/kmimetype.cpp #660420:660421
@@ -269,10 +269,8 @@
 
     // Try the low-priority magic matches (if we can read the data)
     if ( device ) {
-        KMimeType::Ptr mime = KMimeTypeFactory::self()->findFromContent(
+        return KMimeTypeFactory::self()->findFromContent(
             device, KMimeTypeFactory::LowPriorityRules, accuracy, beginning );
-        if ( mime )
-            return mime;
     } else { // Not a local file, or no magic allowed, find a fallback from the protocol
         if (accuracy)
             *accuracy = 10;
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic