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

List:       kde-devel
Subject:    Re: kiconloader.cpp, Help needed
From:       James Richard Tyrer <tyrerj () acm ! org>
Date:       2007-07-28 23:06:45
Message-ID: 46ABCC05.4030803 () acm ! org
[Download RAW message or body]

Corrected diff attached.

This one will compile.

-- 
JRT

["kiconloader.svn-diff" (text/plain)]

Index: kiconloader.cpp
===================================================================
--- kiconloader.cpp	(revision 693510)
+++ kiconloader.cpp	(working copy)
@@ -576,19 +576,13 @@ K3Icon KIconLoader::findMatchingIcon(con
        */
     foreach(KIconThemeNode *themeNode, d->links)
     {
-        for (int i = 0 ; i < 4 ; i++)
-        {
-            icon = themeNode->theme->iconPath(name + ext[i], size, K3Icon::MatchExact);
+            icon = themeNode->theme->iconPath(name, size, K3Icon::MatchExact);
             if (icon.isValid())
                 return icon;
-        }
 
-        for (int i = 0 ; i < 4 ; i++)
-        {
-            icon = themeNode->theme->iconPath(name + ext[i], size, K3Icon::MatchBest);
+            icon = themeNode->theme->iconPath(name, size, K3Icon::MatchBest);
             if (icon.isValid())
                 return icon;
-        }
 
     }
 


>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


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

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