From 112f53345983a639ba7027e48f4b7bc7f4276259 Mon Sep 17 00:00:00 2001 From: Georg Baum Date: Fri, 22 Sep 2006 10:03:00 +0000 Subject: [PATCH] Fix a crash that occured on exit if the clipboard was not empty (only on windows). * src/frontends/Dialogs.C (Dialogs::hide): Don't send the signal if we are quitting git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15116 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/Dialogs.C | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/frontends/Dialogs.C b/src/frontends/Dialogs.C index 7e117b0df3..6a228c99da 100644 --- a/src/frontends/Dialogs.C +++ b/src/frontends/Dialogs.C @@ -14,6 +14,8 @@ #include "Dialogs.h" +#include "lyx_cb.h" + #include "controllers/Dialog.h" #include @@ -53,7 +55,12 @@ BugfixSignal > hideSignal; 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); } -- 2.39.2