[Kommander-devel] branches/KDE/3.5/kdewebdev/kommander/widget

Andras Mantia amantia at kde.org
Wed Mar 1 15:05:12 EST 2006


SVN commit 514820 by amantia:

Accept DCOP methods without parantheses, so 

@dcop(@dcopid, MainApplication-Interface, quit)

works now. Before you had to use

@dcop(@dcopid, MainApplication-Interface, "quit()")

CCMAIL: kommander-devel at mail.kdewebdev.org

 M  +5 -0      kommanderwidget.cpp  


--- branches/KDE/3.5/kdewebdev/kommander/widget/kommanderwidget.cpp #514819:514820
@@ -254,6 +254,11 @@
   bool ok = false;
   if (start != -1)
     pTypes = parseBrackets(function, start, ok);
+  else
+  {
+    ok = true;
+    function += "()";
+  }
   if (!ok)
   {
     printError(i18n("Unmatched parenthesis in DCOP call \'%1\'.").arg(a_query[2]));


More information about the Kommander-devel mailing list