On Mon, Jun 04, 2007 at 10:54:53PM +0200, Bernhard Roider wrote: > Index: src/frontends/Dialogs.cpp > =================================================================== > --- src/frontends/Dialogs.cpp (revision 18672) > +++ src/frontends/Dialogs.cpp (working copy) > @@ -71,9 +71,12 @@ > : lyxview_(lyxview), in_show_(false) > { > // Connect signals > - hideSignal().connect(boost::bind(&Dialogs::hideSlot, this, _1, _2)); > + connection_ = hideSignal().connect(boost::bind(&Dialogs::hideSlot, > this, _1, _2)); > } > > +Dialogs::~Dialogs() { > + connection_.disconnect(); > +}
Dialogs::~Dialogs() { connection_.disconnect(); } > Dialog * Dialogs::find_or_build(string const & name) > { > Index: src/frontends/Dialogs.h > =================================================================== > --- src/frontends/Dialogs.h (revision 18672) > +++ src/frontends/Dialogs.h (working copy) > @@ -31,6 +31,8 @@ > public: > /// > Dialogs(LyXView &); > + /// > + ~Dialogs(); > > /** Check the status of all visible dialogs and disable or reenable > * them as appropriate. > @@ -116,6 +118,9 @@ > > /// flag against a race condition due to multiclicks in Qt frontend, > see bug #1119 > bool in_show_; > + > + /// > + boost::signals::connection connection_; Comment?