]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/Dialogs.cpp
updated list of LyX translations
[lyx.git] / src / frontends / Dialogs.cpp
index 35d4e013d72574b089c637e4a79b656ccaa5f44d..a95950c7849126cb24238738bcf8b26a5923e079 100644 (file)
@@ -71,9 +71,13 @@ Dialogs::Dialogs(LyXView & lyxview)
        : 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)
 {