Hey Markus,

I could not simply repeat your behavior. Do you have a small test
case, or can you modify the test case below ?

Regards,
koen

#include <Wt/WApplication>
#include <Wt/WMessageBox>
#include <Wt/WPushButton>
#include <Wt/WTimer>

#include <boost/lexical_cast.hpp>

using namespace Wt;

class Test : public WApplication
{
public:
  Test(const WEnvironment& env) : WApplication(env)
  {
    WPushButton *b = new WPushButton("Ho", root());
    b->clicked().connect(SLOT(this, Test::doit));
    WTimer *t = new WTimer();
    t->setInterval(1000);
    t->start();
    t->timeout().connect(SLOT(this, Test::noop));
  }

  void doit() {
    WMessageBox::show("Bla", "Blo", Ok | Cancel);
  }

  void noop() {

  }
};

WApplication *createApplication(const WEnvironment& env)
{
  Test *app = new Test(env);

  return app;
}

int main(int argc, char *argv[])
{
  return WRun(argc, argv, &createApplication);
}

------------------------------------------------------------------------------
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to