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

List:       kde-commits
Subject:    KDE/kdebase/workspace/plasma/generic/runners/sessions
From:       Aaron J. Seigo <aseigo () kde ! org>
Date:       2010-12-26 18:36:44
Message-ID: 20101226183644.6D382AC80E () svn ! kde ! org
[Download RAW message or body]

SVN commit 1209442 by aseigo:

treat "switch" as "list all"; this is actually what the syntax documentation already \
says it does, in fact! BUG:261281


 M  +2 -5      sessionrunner.cpp  


--- trunk/KDE/kdebase/workspace/plasma/generic/runners/sessions/sessionrunner.cpp \
#1209441:1209442 @@ -134,11 +134,8 @@
             int switchCmdSize = words.at(0).size();
 
             user = term.right(term.size() - switchCmdSize).trimmed();
-            matchUser = true;
-            // can't match anything below, since it's just "switch"
-           if (matchUser && user.isEmpty()) {       
-                return;
-           }
+            listAll = user.isEmpty();
+            matchUser = !listAll;
         } else {
             // we know it's not SESSION or "switch <something>", so let's
             // try some other possibilities


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

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