3 files changed, 8 insertions, 3 deletions
diff --git a/noncore/settings/networksettings2/networksettings2/netnode.cpp b/noncore/settings/networksettings2/networksettings2/netnode.cpp index 17653bd..f8f2d1e 100644 --- a/noncore/settings/networksettings2/networksettings2/netnode.cpp +++ b/noncore/settings/networksettings2/networksettings2/netnode.cpp | |||
@@ -181,6 +181,7 @@ NodeCollection::NodeCollection( QTextStream & TS ) : | |||
181 | } else if( A == "node" ) { | 181 | } else if( A == "node" ) { |
182 | ANetNodeInstance * NNI = NSResources->findNodeInstance( N ); | 182 | ANetNodeInstance * NNI = NSResources->findNodeInstance( N ); |
183 | Log(( "Find node %s : %p\n", N.latin1(), NNI )); | ||
183 | if( NNI && ! InError ) { | 184 | if( NNI && ! InError ) { |
184 | append( NSResources->findNodeInstance( N ) ); | 185 | append( NNI ); |
185 | } else { | 186 | } else { |
186 | // could not find a node type -> collection invalid | 187 | // could not find a node type -> collection invalid |
@@ -191,5 +192,5 @@ NodeCollection::NodeCollection( QTextStream & TS ) : | |||
191 | 192 | ||
192 | Log(( "Profile number %s : %d nodes\n", | 193 | Log(( "Profile number %s : %d nodes\n", |
193 | N.latin1(), count() )); | 194 | Name.latin1(), count() )); |
194 | } | 195 | } |
195 | 196 | ||
diff --git a/noncore/settings/networksettings2/networksettings2/resources.cpp b/noncore/settings/networksettings2/networksettings2/resources.cpp index 8b3b4fe..50fb15a 100644 --- a/noncore/settings/networksettings2/networksettings2/resources.cpp +++ b/noncore/settings/networksettings2/networksettings2/resources.cpp | |||
@@ -142,4 +142,5 @@ void TheNSResources::findAvailableNetNodes(const QString &path){ | |||
142 | /* if loaded install translation */ | 142 | /* if loaded install translation */ |
143 | if( loadNetNode(path + "/" + fi->fileName()) ) { | 143 | if( loadNetNode(path + "/" + fi->fileName()) ) { |
144 | Log(( "Loading plugin %s\n", fi->fileName().latin1())); | ||
144 | QTranslator *trans = new QTranslator(qApp); | 145 | QTranslator *trans = new QTranslator(qApp); |
145 | QString fn = QPEApplication::qpeDir()+ | 146 | QString fn = QPEApplication::qpeDir()+ |
@@ -152,4 +153,6 @@ void TheNSResources::findAvailableNetNodes(const QString &path){ | |||
152 | else | 153 | else |
153 | delete trans; | 154 | delete trans; |
155 | } else { | ||
156 | Log(( "Error loading plugin %s\n", fi->fileName().latin1())); | ||
154 | } | 157 | } |
155 | } | 158 | } |
diff --git a/noncore/settings/networksettings2/networksettings2/resources.h b/noncore/settings/networksettings2/networksettings2/resources.h index 634cd39..5d90286 100644 --- a/noncore/settings/networksettings2/networksettings2/resources.h +++ b/noncore/settings/networksettings2/networksettings2/resources.h | |||
@@ -81,4 +81,5 @@ public : | |||
81 | ANetNodeInstance * createNodeInstance( const QString & S ) | 81 | ANetNodeInstance * createNodeInstance( const QString & S ) |
82 | { ANetNodeInstance * NNI = 0; | 82 | { ANetNodeInstance * NNI = 0; |
83 | printf( "Find node type %s\n", S.latin1() ); | ||
83 | NetNode_t * NNT = AllNodeTypes[S]; | 84 | NetNode_t * NNT = AllNodeTypes[S]; |
84 | if( ! NNT ) { | 85 | if( ! NNT ) { |
@@ -97,5 +98,5 @@ public : | |||
97 | { AllNodes.remove( N );} | 98 | { AllNodes.remove( N );} |
98 | ANetNodeInstance * findNodeInstance( const QString & S ) | 99 | ANetNodeInstance * findNodeInstance( const QString & S ) |
99 | { return (AllNodes.find(S)!=0) ? AllNodes[S] : 0; } | 100 | { return AllNodes[S]; } |
100 | 101 | ||
101 | const QString & netNode2Name( const char * Type ); | 102 | const QString & netNode2Name( const char * Type ); |