Tommaso Cucinotta wrote:
> Apologies.
>
>     T.
>
> Il 09/01/2011 18:36, Vincent van Ravesteijn ha scritto:
>>
>>> The attached patch works for me in fixing this, i.e., it tries to put the 
>>> focus back on the Current WA first.
>>> Anything against it ?

lets try it...
pavel

> Index: src/frontends/qt4/GuiView.cpp
> ===================================================================
> --- src/frontends/qt4/GuiView.cpp     (revisione 37154)
> +++ src/frontends/qt4/GuiView.cpp     (copia locale)
> @@ -795,10 +795,10 @@
>       QMainWindow::focusInEvent(e);
>       // Make sure guiApp points to the correct view.
>       guiApp->setCurrentView(this);
> -     if (currentMainWorkArea())
> +     if (currentWorkArea())
> +             currentWorkArea()->setFocus();
> +     else if (currentMainWorkArea())
>               currentMainWorkArea()->setFocus();
> -     else if (currentWorkArea())
> -             currentWorkArea()->setFocus();
>       else
>               d.bg_widget_->setFocus();
>  }

Reply via email to