summaryrefslogtreecommitdiff
path: root/Ivy/Ivy.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Ivy/Ivy.cxx')
-rw-r--r--Ivy/Ivy.cxx13
1 files changed, 11 insertions, 2 deletions
diff --git a/Ivy/Ivy.cxx b/Ivy/Ivy.cxx
index 1640b45..6484236 100644
--- a/Ivy/Ivy.cxx
+++ b/Ivy/Ivy.cxx
@@ -61,8 +61,17 @@ Ivy::Ivy(const char* name, const char * ready, IvyApplicationCallback *callback,
synchronous = Synchronous;
IvySynchroWnd::Init(synchronous);
- ready_message = ready;
- ApplicationName = name;
+ // check for empty application name
+ if ( name == NULL || strlen( name ) == 0 )
+ ApplicationName = "LazyDevelopper";
+ else
+ ApplicationName = name;
+
+ // check for empty ready message
+ if ( ready == NULL || strlen( ready ) == 0 )
+ ready_message = ApplicationName + " READY";
+ else
+ ready_message = ready;
binding_callback = NULL;
application_callback = synchronous ? new IvySynchronousApplicationCallback(callback) : callback;