Hey Jean,
It's because clicked() is a signal, i.e. it works like boost::signal() ,
and not like Delphi events.
Basically, internally, it's a list, not a simple pointer to function/functor
Cheers!
Dushan
2010/11/12 Jean-Michel Caricand <[email protected]>
> Hello,
>
> I have a WPushButton member. I want to connect a event :
>
> button_->clicked().connect(this, &MyApp::foo1);
>
> That works fine. Now, I want to connect another event :
>
> button_->clicked().connect(this, &MyApp::foo2);
>
> My problem : when I click button_, foo1() and foo2() are called. Why
> foo1() is not disconnected ?
>
> Thanks
>
>
>
> ------------------------------------------------------------------------------
> Centralized Desktop Delivery: Dell and VMware Reference Architecture
> Simplifying enterprise desktop deployment and management using
> Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
> client virtualization framework. Read more!
> http://p.sf.net/sfu/dell-eql-dev2dev
> _______________________________________________
> witty-interest mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/witty-interest
>
--
Kind Regards,
Dushan Savich
[email protected]
http://stosha.com/
+381 64 329 33 55
Nehruova 95/51
11070 New Belgrade
Belgrade
Serbia
------------------------------------------------------------------------------
Centralized Desktop Delivery: Dell and VMware Reference Architecture
Simplifying enterprise desktop deployment and management using
Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
client virtualization framework. Read more!
http://p.sf.net/sfu/dell-eql-dev2dev
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest