[prev in list] [next in list] [prev in thread] [next in thread]
List: klik-devel
Subject: [klik-devel] [klikclient commit] r965 - trunk/daemon/trunk/src
From: codesite-noreply () google ! com
Date: 2008-01-30 23:20:21
Message-ID: 00163646d2300444f8c8ff10f81b9b16 () google ! com
[Download RAW message or body]
Author: niallw
Date: Wed Jan 30 15:19:53 2008
New Revision: 965
Modified:
trunk/daemon/trunk/src/KlikdConfig.cpp
Log:
klikd: undo my line_id fix, bug was elsewhere
Modified: trunk/daemon/trunk/src/KlikdConfig.cpp
==============================================================================
--- trunk/daemon/trunk/src/KlikdConfig.cpp (original)
+++ trunk/daemon/trunk/src/KlikdConfig.cpp Wed Jan 30 15:19:53 2008
@@ -23,14 +23,15 @@
while ( getline( &line, &n, output ) != -1 ) {
- if ( strlen(line) > 1 ) {
+ if ( strlen(line) <= 1 )
+ ++line_id;
+
+ else {
switch( line_id ) {
case 1:
this->debug_mode = (bool) atoi( line );
- // It's not _always_ on is it?
debug("Debug is ON");
- ++line_id;
break;
case 2:
line[strlen(line)-1] = '\0';
@@ -38,6 +39,9 @@
this->application_folders.push_back( line );
else
debug(string("Dropping path ") + line);
+ break;
+ default:
+ cerr << "!! Extra configuration line: " << line << endl;
break;
}
_______________________________________________
klik-devel mailing list
klik-devel@kde.org
https://mail.kde.org/mailman/listinfo/klik-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic