diff options
author | fcolin | 2009-10-15 10:26:27 +0000 |
---|---|---|
committer | fcolin | 2009-10-15 10:26:27 +0000 |
commit | 473bf59297a9c8010fb35f505c872024ae3d259d (patch) | |
tree | ba296d860b9ecda9101b76f1eea4407daa997a38 /Ivy/IvySynchroWnd.cxx | |
parent | 3bd1423d9bd7374c2d39f9817e3a1caa836f86e6 (diff) | |
download | ivy-cplusplus-473bf59297a9c8010fb35f505c872024ae3d259d.zip ivy-cplusplus-473bf59297a9c8010fb35f505c872024ae3d259d.tar.gz ivy-cplusplus-473bf59297a9c8010fb35f505c872024ae3d259d.tar.bz2 ivy-cplusplus-473bf59297a9c8010fb35f505c872024ae3d259d.tar.xz |
correction bug threaded IvyApplication
correction checkconnected self
Diffstat (limited to 'Ivy/IvySynchroWnd.cxx')
-rw-r--r-- | Ivy/IvySynchroWnd.cxx | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/Ivy/IvySynchroWnd.cxx b/Ivy/IvySynchroWnd.cxx index 2109a61..2c84ad5 100644 --- a/Ivy/IvySynchroWnd.cxx +++ b/Ivy/IvySynchroWnd.cxx @@ -178,6 +178,7 @@ void IvySynchronousApplicationCallback::OnApplicationDisconnected( IvyApplicati }
void IvySynchronousApplicationCallback::CallCallback()
{
+ if ( !target ) return;
switch ( type )
{
case CONNECTED_CB:
@@ -227,17 +228,20 @@ void IvySynchronousBindingCallback::OnFilterBind( IvyApplication *app, int id, }
void IvySynchronousBindingCallback::CallCallback()
{
- switch ( type )
+ if ( target )
{
- case ADD_CB:
- target->OnAddBind( app, id, regexp );
- break;
- case REMOVE_CB:
- target->OnRemoveBind( app, id, regexp );
- break;
- case FILTER_CB:
- target->OnFilterBind( app, id, regexp );
- break;
+ switch ( type )
+ {
+ case ADD_CB:
+ target->OnAddBind( app, id, regexp );
+ break;
+ case REMOVE_CB:
+ target->OnRemoveBind( app, id, regexp );
+ break;
+ case FILTER_CB:
+ target->OnFilterBind( app, id, regexp );
+ break;
+ }
}
delete regexp;
}
\ No newline at end of file |