Georg Baum wrote:
> Peter Kümmel wrote:
>
>> disconnection also doesn't help, there is still a signaling:
>>
>>
> lyx-qt3.exe!boost::signals::detail::call_notification::call_notification(const
>> boost::shared_ptr<boost::signals::detail::signal_base_impl> & b={...})
>> Line 158 + 0x42 bytes C++
>>
>> and it crashed while sending the signal, could this be blocked?
>
> Indeed, the signal is also static. Maybe this patch fixes the problem? I
> don't like the quitting variable at all, but if it works it would be the
> most simple solution.
>
I've tested it with a static function which sets a static variable
and it works, but it also works with quitting. So which solution should
we use. I will then prepare a patch and ask JMarc what to do with it.
>
> 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,8 @@ BugfixSignal<boost::signal<void(string c
>
> void Dialogs::hide(string const & name, InsetBase* inset)
> {
> - hideSignal()(name, inset);
> + if (!quitting)
> + hideSignal()(name, inset);
> }
>
>
--
Peter Kümmel