Abdelrazak Younes wrote:
> 
> I don't understand how setFocus could result in the usage of
> bufferView()... And I don't see the crash either...

I use a snapshot Qt, maybe this is the reason.

>> but no WorkArea has been constructed at this time.
> 
> You mean BufferView right?
> 
> Anyway... this setFocus is not needed so I will commit the attached
> cleanup  which should hopefully fixes your crash. But this is weird
> anyway...
> 

Yes, the crash is fixed.

> Abdel.
> 
> 
> 
> ------------------------------------------------------------------------
> 
> Index: GuiWorkArea.C
> ===================================================================
> --- GuiWorkArea.C     (revision 14842)
> +++ GuiWorkArea.C     (working copy)
> @@ -129,9 +129,6 @@
>  
>       viewport()->setAutoFillBackground(false);
>       viewport()->setAttribute(Qt::WA_OpaquePaintEvent);
> -
> -     viewport()->setFocusPolicy(Qt::WheelFocus);
> -     viewport()->setFocus();
>       setFocusPolicy(Qt::WheelFocus);
>  
>       viewport()->setCursor(Qt::IBeamCursor);

Reply via email to