jorrit | 8 Aug 2012 11:08
Picon

SF.net SVN: cel:[4957] cel/trunk/plugins/propclass/tools/timerfact.cpp

Revision: 4957
          http://cel.svn.sourceforge.net/cel/?rev=4957&view=rev
Author:   jorrit
Date:     2012-08-08 09:08:36 +0000 (Wed, 08 Aug 2012)
Log Message:
-----------
Fixed a bug in the timer property class. If a name for the WakeUp was not
given then it would register the event on the wrong name.

Modified Paths:
--------------
    cel/trunk/plugins/propclass/tools/timerfact.cpp

Modified: cel/trunk/plugins/propclass/tools/timerfact.cpp
===================================================================
--- cel/trunk/plugins/propclass/tools/timerfact.cpp	2012-08-07 12:54:02 UTC (rev 4956)
+++ cel/trunk/plugins/propclass/tools/timerfact.cpp	2012-08-08 09:08:36 UTC (rev 4957)
 <at>  <at>  -194,7 +194,7  <at>  <at> 
   te_new.firetime = current + t;
   te_new.amount = t;
   te_new.repeat = repeat;
-  te_new.name = name ? name : "wakeup";
+  te_new.name = (name && *name) ? name : "wakeup";
   timer_events.InsertSorted (te_new, CompareTimeEvent);

   pl->CallbackOnce ((iCelTimerListener*)this,

This was sent by the SourceForge.net collaborative development platform, the world's largest Open
Source development site.

(Continue reading)


Gmane