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

List:       kde-commits
Subject:    kdelibs/kinit
From:       Waldo Bastian <bastian () kde ! org>
Date:       2003-07-29 9:55:41
[Download RAW message or body]

CVS commit by waba: 

Allow empty (default) group in X-KDE-autostart-condition
Patch by Reinhold Kainhofer <reinhold@kainhofer.com>


  M +1 -0      README.autostart   1.2
  M +6 -3      autostart.cpp   1.8


--- kdelibs/kinit/README.autostart  #1.1:1.2
@@ -27,4 +27,5 @@
       missing from the config file, the application will only be started if
       'default' is 'true'.
+      If the entry is not within a group, the group entry can be left empty.
 
    X-KDE-autostart-after = desktop_name

--- kdelibs/kinit/autostart.cpp  #1.7:1.8
@@ -87,9 +87,12 @@ static bool startCondition(const QString
      return true;
 
-  QStringList list = QStringList::split(':', condition);
+  QStringList list = QStringList::split(':', condition, TRUE);
   if (list.count() < 4) 
      return true;
+  if (list[0].isEmpty() || list[2].isEmpty()) 
+     return true;
 
   KConfig config(list[0]);
+  if (!list[1].isEmpty())
   config.setGroup(list[1]);
 


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

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