: lyxview_(lyxview), in_show_(false)
{
// Connect signals
: 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();
+}
Dialog * Dialogs::find_or_build(string const & name)
{
Dialog * Dialogs::find_or_build(string const & name)
{
public:
///
Dialogs(LyXView &);
public:
///
Dialogs(LyXView &);
/** Check the status of all visible dialogs and disable or reenable
* them as appropriate.
/** Check the status of all visible dialogs and disable or reenable
* them as appropriate.
/// flag against a race condition due to multiclicks in Qt frontend, see bug #1119
bool in_show_;
/// flag against a race condition due to multiclicks in Qt frontend, see bug #1119
bool in_show_;
+
+ ///
+ boost::signals::connection connection_;