diff options
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 |