Hi,

if WTimer::start() is called on an active timer nothing happens. A restart of the timer would be better IMHO. The Qt QTimer also restarts the timer.

Attached is a patch for restarting an active timer.

Regards,
Stefan
*** WTimer.C	2012-02-22 11:12:30.000000000 +0100
--- WTimer.C.new	2012-07-11 08:53:06.000000000 +0200
***************
*** 49,54 ****
--- 49,58 ----
  
  void WTimer::start()
  {
+   if (active_) {
+     stop();
+   }
+ 
    if (!active_) {
      WApplication *app = WApplication::instance();    
      if (app && app->timerRoot())
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to