Update of /cvsroot/simspark/simspark/contrib/rsgedit
In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv20640
Modified Files:
mainframe.cpp
Log Message:
- make sure to alos close agent frames and to kill all associated processes if the main frame is closed
Index: mainframe.cpp
===================================================================
RCS file: /cvsroot/simspark/simspark/contrib/rsgedit/mainframe.cpp,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** mainframe.cpp 31 Mar 2007 13:28:50 -0000 1.10
--- mainframe.cpp 1 Apr 2007 15:14:09 -0000 1.11
***************
*** 306,309 ****
--- 306,326 ----
}
+ // close agentframes
+ wxWindowList& children = GetChildren();
+ for (
+ wxWindowList::Node *node = children.GetFirst();
+ node != 0;
+ node = node->GetNext()
+ )
+ {
+ agentframe* af = dynamic_cast<agentframe*>(node->GetData());
+ if (af == 0)
+ {
+ continue;
+ }
+
+ af->Close();
+ }
+
event.Skip();
}
|