Joost Verburg wrote:

> Jean-Marc Lasgouttes wrote:
>>>>>>> "Georg" == Georg Baum
>>>>>>> <[EMAIL PROTECTED]>
>>>>>>> writes:
>> 
>> Georg> But if it is OK I'll put it in 1.4.4svn once the version number
>> Georg> in configure.ac is up.
>> 
>> This is done now. So what is the final patch? I am lost in the thread.
> 
> This one, created by Georg.

Yes, but I'd rather add a comment. Otherwise nobody understands why it is
needed.


Georg
Index: src/frontends/Dialogs.C
===================================================================
--- src/frontends/Dialogs.C	(Revision 15111)
+++ src/frontends/Dialogs.C	(Arbeitskopie)
@@ -14,6 +14,8 @@
 
 #include "Dialogs.h"
 
+#include "lyx_cb.h"
+
 #include "controllers/Dialog.h"
 
 #include <boost/signal.hpp>
@@ -60,7 +62,12 @@ BugfixSignal<boost::signal<void(string c
 
 void Dialogs::hide(string const & name, InsetBase* inset)
 {
-	hideSignal()(name, inset);
+	// Don't send the signal if we are quitting, because on MSVC it is
+	// destructed before the cut stack in CutAndPaste.C, and this method
+	// is called from some inset destructor if the cut stack is not empty
+	// on exit.
+	if (!quitting)
+		hideSignal()(name, inset);
 }
 
 

Reply via email to