Blame SOURCES/return-not-break.-copy-paste-error.patch

92cace
From 0edfd42151ad57322a10a24ab4971b638e220e6e Mon Sep 17 00:00:00 2001
92cace
From: Aaron Seigo <aseigo@kde.org>
92cace
Date: Thu, 21 Feb 2013 18:14:54 +0100
92cace
Subject: [PATCH 049/111] return, not break. copy/paste error
92cace
92cace
---
92cace
 kdeui/icons/kiconloader.cpp | 4 ++--
92cace
 1 file changed, 2 insertions(+), 2 deletions(-)
92cace
92cace
diff --git a/kdeui/icons/kiconloader.cpp b/kdeui/icons/kiconloader.cpp
92cace
index dba474d..ce6aeea 100644
92cace
--- a/kdeui/icons/kiconloader.cpp
92cace
+++ b/kdeui/icons/kiconloader.cpp
92cace
@@ -947,12 +947,12 @@ K3Icon KIconLoaderPrivate::findMatchingIcon(const QString& name, int size) const
92cace
             for (int i = 0 ; i < 4 ; i++) {
92cace
                 icon = themeNode->theme->iconPath(currentName + ext[i], size, KIconLoader::MatchExact);
92cace
                 if (icon.isValid()) {
92cace
-                    break;
92cace
+                    return icon;
92cace
                 }
92cace
 
92cace
                 icon = themeNode->theme->iconPath(currentName + ext[i], size, KIconLoader::MatchBest);
92cace
                 if (icon.isValid()) {
92cace
-                    break;
92cace
+                    return icon;
92cace
                 }
92cace
             }
92cace
             //kDebug(264) << "Looking up" << currentName;
92cace
-- 
92cace
1.8.1.4
92cace