[PATCH] kcontrol/arts

Nadeem Hasan nhasan at nadmm.com
Sun Sep 15 21:38:53 BST 2002


Hi,

The patch adds "Never" as the low end case in the autosuspend option of aRTS.
My question is: Is "-s 0" same as not passing the parameter at all to artsd?
In other words, does it mean "do not auto-suspend"?

Cheers,
-- 
Nadeem Hasan
nhasan at nadmm.com
http://www.nadmm.com/


Index: kcontrol/arts/arts.cpp
===================================================================
RCS file: /home/kde/kdebase/kcontrol/arts/arts.cpp,v
retrieving revision 1.75
diff -u -r1.75 arts.cpp
--- kcontrol/arts/arts.cpp      2002/09/06 11:46:19     1.75
+++ kcontrol/arts/arts.cpp      2002/09/15 20:37:42
@@ -155,6 +155,7 @@
        GetSettings();

     suspendTime->setRange( 0, 999, 1, true );
+    suspendTime->setSpecialValueText( i18n( "Never" ) );

        connect(startServer,SIGNAL(clicked()),this,SLOT(slotChanged()));
        connect(networkTransparent,SIGNAL(clicked()),this,SLOT(slotChanged()));
@@ -667,7 +668,7 @@
        if (bits)
                args += QString::fromLatin1(" -b %1").arg(bits);

-       if (autoSuspend)
+       if (autoSuspend && suspendTime)
                args += QString::fromLatin1(" -s %1").arg(suspendTime);

        if (!messageApplication.isEmpty())






More information about the kde-core-devel mailing list