summaryrefslogtreecommitdiff
path: root/noncore/settings/networksettings2/networksettings2/netnode.cpp
Unidiff
Diffstat (limited to 'noncore/settings/networksettings2/networksettings2/netnode.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/networksettings2/networksettings2/netnode.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/noncore/settings/networksettings2/networksettings2/netnode.cpp b/noncore/settings/networksettings2/networksettings2/netnode.cpp
index 1182543..8c80e0b 100644
--- a/noncore/settings/networksettings2/networksettings2/netnode.cpp
+++ b/noncore/settings/networksettings2/networksettings2/netnode.cpp
@@ -100,14 +100,12 @@ ANetNodeInstance * ANetNodeInstance::nextNode( void ) {
100// 100//
101// 101//
102// NODECOLLECTION 102// NODECOLLECTION
103// 103//
104// 104//
105 105
106long NodeCollection::MaxNr = -1;
107
108NodeCollection::NodeCollection( void ) : QList<ANetNodeInstance>() { 106NodeCollection::NodeCollection( void ) : QList<ANetNodeInstance>() {
109 IsModified = 0; 107 IsModified = 0;
110 Index = -1; 108 Index = -1;
111 Name=""; 109 Name="";
112 IsNew = 1; 110 IsNew = 1;
113 CurrentState = Unchecked; 111 CurrentState = Unchecked;
@@ -143,12 +141,13 @@ NodeCollection::NodeCollection( QTextStream & TS ) :
143 N.stripWhiteSpace(); 141 N.stripWhiteSpace();
144 N = deQuote( N ); 142 N = deQuote( N );
145 143
146 if( A == "name" ) { 144 if( A == "name" ) {
147 Name = N; 145 Name = N;
148 } else if( A == "number" ) { 146 } else if( A == "number" ) {
147 Log(( "read number %s\n", N.latin1() ));
149 setNumber( N.toLong() ); 148 setNumber( N.toLong() );
150 } else if( A == "node" ) { 149 } else if( A == "node" ) {
151 ANetNodeInstance * NNI = NSResources->findNodeInstance( N ); 150 ANetNodeInstance * NNI = NSResources->findNodeInstance( N );
152 if( NNI && ! InError ) { 151 if( NNI && ! InError ) {
153 append( NSResources->findNodeInstance( N ) ); 152 append( NSResources->findNodeInstance( N ) );
154 } else { 153 } else {
@@ -292,12 +291,15 @@ void NodeCollection::reassign( void ) {
292 it.current(); 291 it.current();
293 ++it ) { 292 ++it ) {
294 it.current()->setConnection( this ); 293 it.current()->setConnection( this );
295 } 294 }
296} 295}
297 296
297bool NodeCollection::triggersVPN() {
298 return getToplevel()->runtime()->asFullSetup()->triggersVPN();
299}
298// 300//
299// 301//
300// RUNTIMEINFO 302// RUNTIMEINFO
301// 303//
302// 304//
303 305