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

List:       kde-commits
Subject:    branches/KDE/4.4/kdelibs/plasma
From:       Aaron J. Seigo <aseigo () kde ! org>
Date:       2010-02-16 2:40:20
Message-ID: 1266288020.326169.19311.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1090802 by aseigo:

initialComponents is unsigned, so can't -1 from it; just return if the components list is empty
CCBUG:227118


 M  +4 -0      runnercontext.cpp  


--- branches/KDE/4.4/kdelibs/plasma/runnercontext.cpp #1090801:1090802
@@ -128,6 +128,10 @@
         components.pop_back();
     }
 
+    if (components.isEmpty()) {
+        return true;
+    }
+
     QString correctPath;
     const unsigned initialComponents = components.size();
     for (unsigned i = 0; i < initialComponents - 1; i ++) {
[prev in list] [next in list] [prev in thread] [next in thread] 

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